Skip to content

Commit 34a7da5

Browse files
committed
Use step-security/harden-runner in the Analyze job
Since this Action should be used in every job we need to use it here.
1 parent e3381b1 commit 34a7da5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ jobs:
3838
name: Dump context
3939
uses: crazy-max/ghaction-dump-context@v2
4040
analyze:
41+
name: Analyze
4142
needs:
4243
- diagnostics
43-
name: Analyze
4444
runs-on: ubuntu-latest
4545
permissions:
4646
# required for all workflows
@@ -56,6 +56,12 @@ jobs:
5656
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
5757

5858
steps:
59+
- id: harden-runner
60+
name: Harden the runner
61+
uses: step-security/harden-runner@v2
62+
with:
63+
egress-policy: audit
64+
5965
- name: Checkout repository
6066
uses: actions/checkout@v4
6167

0 commit comments

Comments
 (0)