Skip to content

Commit

Permalink
self-hosted network filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsh-coder committed Oct 2, 2023
1 parent 02e0dd8 commit 12b14b8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/self-hosted-network-filtering-hr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Self-Hosted (VM): Network Filtering with Harden-Runner"
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: [self-hosted, ec2]
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: block
allowed-endpoints: >
*.docker.io:443
ghcr.io:443
github.com:443
registry.npmjs.org:443
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: npm install
run: |
cd ./src/exfiltration-demo
npm install
- 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
2 changes: 1 addition & 1 deletion .github/workflows/self-hosted-network-monitoring-hr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "Self-Hosted (VM): Network Monitoring with Harden-Runner"
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: [self-hosted, ec2]
Expand Down

0 comments on commit 12b14b8

Please sign in to comment.