Skip to content

Commit 0c88228

Browse files
authored
Only allowed authorized remote hosts
1 parent 9942f27 commit 0c88228

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@ jobs:
2323
language: [ cpp ]
2424

2525
steps:
26-
- name: harden-runner
27-
uses: step-security/harden-runner@v2
26+
- name: Harden Runner
27+
uses: step-security/harden-runner@ebacdc22ef6c2cfb85ee5ded8f2e640f4c776dd5
2828
with:
29-
egress-policy: audit
29+
disable-sudo: true
30+
egress-policy: block
31+
allowed-endpoints: >
32+
api.github.com:443
33+
github.com:443
34+
uploads.github.com:443
3035
- name: Checkout
3136
uses: actions/checkout@v3
3237
- name: Initialize CodeQL

0 commit comments

Comments
 (0)