Skip to content

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

Update hosted-network-filtering-hr.yml

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

name: "Hosted: Network Filtering with Harden-Runner"
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@95691d3d1cfc1f403f673ccbe70465d7c4254108
with:
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
- 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