Skip to content

Commit a534fb1

Browse files
authored
Merge branch 'master' into dependabot/github_actions/actions/setup-node-4.3.0
2 parents f6b2737 + 3ca0327 commit a534fb1

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

Diff for: .github/workflows/codeql.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ on:
1919
schedule:
2020
- cron: '19 0 * * 5'
2121

22+
permissions:
23+
contents: read
24+
2225
jobs:
2326
analyze:
2427
name: Analyze (${{ matrix.language }})
@@ -56,8 +59,13 @@ jobs:
5659
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
5760
# 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
5861
steps:
62+
- name: Harden the runner (Audit all outbound calls)
63+
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
64+
with:
65+
egress-policy: audit
66+
5967
- name: Checkout repository
60-
uses: actions/checkout@v4
68+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6169

6270
# Add any setup steps before running the `github/codeql-action/init` action.
6371
# This includes steps like installing compilers or runtimes (`actions/setup-node`
@@ -67,7 +75,7 @@ jobs:
6775

6876
# Initializes the CodeQL tools for scanning.
6977
- name: Initialize CodeQL
70-
uses: github/codeql-action/init@v3
78+
uses: github/codeql-action/init@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
7179
with:
7280
languages: ${{ matrix.language }}
7381
build-mode: ${{ matrix.build-mode }}
@@ -95,6 +103,6 @@ jobs:
95103
exit 1
96104
97105
- name: Perform CodeQL Analysis
98-
uses: github/codeql-action/analyze@v3
106+
uses: github/codeql-action/analyze@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
99107
with:
100108
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)