Skip to content

Commit

Permalink
fix: get back egress-policy block for harden runner
Browse files Browse the repository at this point in the history
  • Loading branch information
inigomarquinez committed Jan 31, 2024
1 parent cdac19d commit e623043
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/code-climate-test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@ jobs:
code-climate:
runs-on: ubuntu-latest
steps:
- name: 🔐 Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
# disable-sudo: true
# egress-policy: block
# allowed-endpoints: >
# github.com:443
# registry.npmjs.org:443
# api.github.com:443
# nodejs.org:443
# codeclimate.com:443
# d3iz1jjs17r6kg.cloudfront.net:443
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.codeclimate.com:443
codeclimate.com:443
d3iz1jjs17r6kg.cloudfront.net:443
github.com:443
registry.npmjs.org:443
- name: ⚙️ Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/openssf-scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,21 @@ jobs:
# actions: read

steps:
- name: 🔐 Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
# disable-sudo: true
# egress-policy: block
# allowed-endpoints: >
# github.com:443
# registry.npmjs.org:443
# api.github.com:443
# nodejs.org:443
# www.bestpractices.dev:443
# oss-fuzz-build-logs.storage.googleapis.com:443
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
api.osv.dev:443
api.securityscorecards.dev:443
fulcio.sigstore.dev:443
github.com:443
oss-fuzz-build-logs.storage.googleapis.com:443
rekor.sigstore.dev:443
tuf-repo-cdn.sigstore.dev:443
www.bestpractices.dev:443
- name: ⚙️ Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down

0 comments on commit e623043

Please sign in to comment.