-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update hosted-network-filtering-hr.yml
- Loading branch information
1 parent
ee5266d
commit cec2e96
Showing
1 changed file
with
3 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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/ |