Skip to content

Commit 1fbb26d

Browse files
[StepSecurity] ci: Harden GitHub Actions (#866)
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
1 parent dbed744 commit 1fbb26d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ on:
3939
- 'pdf/**'
4040
workflow_dispatch:
4141

42+
permissions:
43+
contents: read
44+
4245
jobs:
4346
analyze:
4447
name: Analyze Rust
@@ -68,6 +71,11 @@ jobs:
6871
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
6972
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
7073
steps:
74+
- name: Harden the runner (Audit all outbound calls)
75+
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
76+
with:
77+
egress-policy: audit
78+
7179
- name: Checkout repository
7280
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
7381

0 commit comments

Comments
 (0)