From cec2e961fa2992d399afe17b25720c9dcb126624 Mon Sep 17 00:00:00 2001 From: Varun Sharma Date: Wed, 25 Sep 2024 10:33:36 -0700 Subject: [PATCH] Update hosted-network-filtering-hr.yml --- .../workflows/hosted-network-filtering-hr.yml | 29 ++----------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/.github/workflows/hosted-network-filtering-hr.yml b/.github/workflows/hosted-network-filtering-hr.yml index 7dd7dcbf..63ac32fa 100644 --- a/.github/workflows/hosted-network-filtering-hr.yml +++ b/.github/workflows/hosted-network-filtering-hr.yml @@ -1,5 +1,6 @@ name: "Hosted: Network Filtering with Harden-Runner" on: + pull_request: workflow_dispatch: jobs: @@ -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/npm-get-version-action@v1.3.1 - 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/