Skip to content

Commit

Permalink
feat: Add step-security/harden-runner to GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
andymac4182 committed Apr 21, 2023
1 parent 979bc93 commit f49c627
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docs.yml
Expand Up @@ -23,6 +23,11 @@ jobs:
pages: write
id-token: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@6b3083af2869dc3314a0257a42f4af696cc79ba3 # v2.3.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pr-check.yml
Expand Up @@ -22,6 +22,11 @@ jobs:
build_status: ${{ steps.build.outcome }}

steps:
- name: Harden Runner
uses: step-security/harden-runner@6b3083af2869dc3314a0257a42f4af696cc79ba3 # v2.3.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- name: Check out repository code
uses: actions/checkout@v3

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release-please.yml
Expand Up @@ -14,6 +14,11 @@ jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@6b3083af2869dc3314a0257a42f4af696cc79ba3 # v2.3.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- name: Checkout repository
uses: actions/checkout@v3

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/scorecard.yml
Expand Up @@ -31,6 +31,12 @@ jobs:
# actions: read

steps:
- name: Harden Runner
uses: step-security/harden-runner@6b3083af2869dc3314a0257a42f4af696cc79ba3 # v2.3.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs


- name: "Checkout code"
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
Expand Down

0 comments on commit f49c627

Please sign in to comment.