Skip to content

Commit

Permalink
Use harden runner for docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver committed Dec 1, 2022
1 parent 6b95ce9 commit f5b2405
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,22 @@ jobs:
name: Build and push Docker image
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@2e205a28d0e1da00c5f53b161f4067b052c61f34 # v1.5.0
with:
egress-policy: block
disable-telemetry: true
allowed-endpoints: >
ghcr.io:443
github.com:443
api.github.com:443
pkg-containers.githubusercontent.com:443
auth.docker.io:443
registry-1.docker.io:443
production.cloudflare.docker.com:443
- name: Checkout default branch
uses: actions/checkout@v3
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
fetch-depth: 0

Expand Down Expand Up @@ -166,8 +180,22 @@ jobs:
name: AllInOne Docker image
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@2e205a28d0e1da00c5f53b161f4067b052c61f34 # v1.5.0
with:
egress-policy: block
disable-telemetry: true
allowed-endpoints: >
ghcr.io:443
github.com:443
api.github.com:443
pkg-containers.githubusercontent.com:443
auth.docker.io:443
registry-1.docker.io:443
production.cloudflare.docker.com:443
- name: Checkout default branch
uses: actions/checkout@v3
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
fetch-depth: 0

Expand Down

0 comments on commit f5b2405

Please sign in to comment.