Skip to content

Commit

Permalink
Update hosted-network-filtering-hr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsh-coder authored Sep 25, 2024
1 parent ee5266d commit cec2e96
Showing 1 changed file with 3 additions and 26 deletions.
29 changes: 3 additions & 26 deletions .github/workflows/hosted-network-filtering-hr.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: "Hosted: Network Filtering with Harden-Runner"
on:
pull_request:
workflow_dispatch:

jobs:
Expand All @@ -12,36 +13,12 @@ jobs:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
ghcr.io:443
github.com:443
registry.npmjs.org:443
www.githubstatus.com:443
- uses: crazy-max/ghaction-github-status@v4

- uses: actions/checkout@v3

- name: npm install
run: |
cd ./src/exfiltration-demo
npm install
- name: get-npm-version
id: package-version
uses: martinbeentjes/[email protected]
with:
path: src/exfiltration-demo

- uses: madhead/semver-utils@latest
id: version
with:
version: 1.2.3

- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: ${{ github.repository }}/prod:latest
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
workdir: ./src/exfiltration-demo
- run: |
curl https://exfiltrationdemo.blob.core.windows.net/

0 comments on commit cec2e96

Please sign in to comment.