Skip to content
This repository was archived by the owner on Nov 28, 2024. It is now read-only.

Commit 97cacfd

Browse files
authored
Merge pull request #94 from Nick2bad4u/update_actions
Update actions
2 parents 6db5750 + 4d47f7e commit 97cacfd

File tree

6 files changed

+51
-8
lines changed

6 files changed

+51
-8
lines changed

.github/workflows/bandit.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,14 @@ jobs:
3434
steps:
3535
- name: Harden Runner
3636
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
37-
with:
38-
egress-policy: audit
37+
with:
38+
disable-sudo: true
39+
egress-policy: block
40+
allowed-endpoints: >
41+
api.github.com:443
42+
files.pythonhosted.org:443
43+
github.com:443
44+
pypi.org:443
3945
4046
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
4147
- name: Bandit Scan

.github/workflows/black.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
name: black-formatter
22

33
on: [push, pull_request]
4-
4+
permissions:
5+
contents: read
6+
57
jobs:
68
black-linter:
79
runs-on: ubuntu-latest
810
steps:
911
- name: Harden Runner
1012
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
1113
with:
12-
egress-policy: audit
14+
disable-sudo: true
15+
egress-policy: block
16+
allowed-endpoints: >
17+
files.pythonhosted.org:443
18+
github.com:443
19+
pypi.org:443
1320
1421
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
1522
- uses: psf/black@3702ba224ecffbcec30af640c149f231d90aebdb # stable

.github/workflows/devskim.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ jobs:
2828
- name: Harden Runner
2929
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
3030
with:
31-
egress-policy: audit
31+
disable-sudo: true
32+
egress-policy: block
33+
allowed-endpoints: >
34+
api.github.com:443
35+
github.com:443
3236
3337
- name: Checkout code
3438
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

.github/workflows/scorecard.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,21 @@ jobs:
3434
- name: Harden Runner
3535
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
3636
with:
37-
egress-policy: audit
37+
disable-sudo: true
38+
egress-policy: block
39+
allowed-endpoints: >
40+
api.github.com:443
41+
api.osv.dev:443
42+
api.scorecard.dev:443
43+
api.securityscorecards.dev:443
44+
auth.docker.io:443
45+
fulcio.sigstore.dev:443
46+
github.com:443
47+
index.docker.io:443
48+
oss-fuzz-build-logs.storage.googleapis.com:443
49+
rekor.sigstore.dev:443
50+
tuf-repo-cdn.sigstore.dev:443
51+
www.bestpractices.dev:443
3852
3953
- name: "Checkout code"
4054
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

.github/workflows/sobelow.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@ jobs:
3535
- name: Harden Runner
3636
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
3737
with:
38-
egress-policy: audit
38+
disable-sudo: true
39+
egress-policy: block
40+
allowed-endpoints: >
41+
builds.hex.pm:443
42+
github.com:443
43+
repo.hex.pm:443
44+
sobelow.io:443
3945
4046
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
4147
- id: run-action

.github/workflows/super-linter.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ jobs:
2525
- name: Harden Runner
2626
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
2727
with:
28-
egress-policy: audit
28+
egress-policy: block
29+
allowed-endpoints: >
30+
api.github.com:443
31+
api0.prismacloud.io:443
32+
files.pythonhosted.org:443
33+
github.com:443
34+
pypi.org:443
2935
3036
- name: Checkout code
3137
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

0 commit comments

Comments
 (0)