Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update hosted-network-filtering-hr.yml #195

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/
Loading