Skip to content

Commit 72e0ede

Browse files
committed
chore: workflow hardening
1 parent 1a20da5 commit 72e0ede

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

.github/workflows/contracts-testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Harden Runner
20-
uses: step-security/harden-runner@c8454efe5d0bdefd25384362fe217428ca277d57
20+
uses: step-security/harden-runner@03bee3930647ebbf994244c21ddbc0d4933aab4f # v2.3.0
2121
with:
2222
disable-sudo: true
2323
egress-policy: block

.github/workflows/dependabot-automerge.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ jobs:
1414
- name: Harden Runner
1515
uses: step-security/harden-runner@03bee3930647ebbf994244c21ddbc0d4933aab4f # v2.3.0
1616
with:
17-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
17+
disable-sudo: true
18+
egress-policy: block
19+
allowed-endpoints: >
20+
api.github.com:443
1821
1922
- name: Dependabot metadata
2023
id: metadata

.github/workflows/dependency-review.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ jobs:
1919
- name: Harden Runner
2020
uses: step-security/harden-runner@03bee3930647ebbf994244c21ddbc0d4933aab4f # v2.3.0
2121
with:
22-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
22+
disable-sudo: true
23+
egress-policy: block
24+
allowed-endpoints: >
25+
api.github.com:443
26+
github.com:443
2327
2428
- name: 'Checkout Repository'
2529
uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v3.5.1

.github/workflows/scorecards.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
schedule:
1313
- cron: '37 13 * * 3'
1414
push:
15-
branches: [ "master" ]
15+
branches: [ "master", "dev" ]
1616

1717
# Declare default permissions as read only.
1818
permissions: read-all
@@ -34,7 +34,10 @@ jobs:
3434
- name: Harden Runner
3535
uses: step-security/harden-runner@03bee3930647ebbf994244c21ddbc0d4933aab4f # v2.3.0
3636
with:
37-
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
37+
disable-sudo: true
38+
egress-policy: block
39+
allowed-endpoints: >
40+
api.github.com:443 api.osv.dev:443 auth.docker.io:443 bestpractices.coreinfrastructure.org:443 fulcio.sigstore.dev:443 github.com:443 index.docker.io:443 sigstore-tuf-root.storage.googleapis.com:443
3841
3942
- name: "Checkout code"
4043
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.1.0

0 commit comments

Comments
 (0)