Skip to content

Commit

Permalink
Add runner hardening to all jobs in our workflows
Browse files Browse the repository at this point in the history
This aligns with what was done to the `lint` job of the build.yml
workflow that was inherited from cisagov/skeleton-generic.
  • Loading branch information
mcdonnnj committed Sep 13, 2023
1 parent 7eefae0 commit f02cde7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@ jobs:
tags: ${{ steps.prep.outputs.tags }}
runs-on: ubuntu-latest
steps:
- id: harden-runner
name: Harden the runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- uses: actions/checkout@v4
- name: Gather repository metadata
id: repo
Expand Down Expand Up @@ -275,6 +280,11 @@ jobs:
- prepare
runs-on: ubuntu-latest
steps:
- id: harden-runner
name: Harden the runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
Expand Down Expand Up @@ -347,6 +357,11 @@ jobs:
- build
runs-on: ubuntu-latest
steps:
- id: harden-runner
name: Harden the runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- uses: actions/checkout@v4
- id: setup-python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -402,6 +417,11 @@ jobs:
packages: write
runs-on: ubuntu-latest
steps:
- id: harden-runner
name: Harden the runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
Expand Down

0 comments on commit f02cde7

Please sign in to comment.