@@ -42,12 +42,17 @@ jobs:
4242 # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
4343
4444 steps :
45+ - name : Harden the runner (Audit all outbound calls)
46+ uses : step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
47+ with :
48+ egress-policy : audit
49+
4550 - name : Checkout repository
46- uses : actions/checkout@v4
51+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4752
4853 # Initializes the CodeQL tools for scanning.
4954 - name : Initialize CodeQL
50- uses : github/codeql-action/init@v3
55+ uses : github/codeql-action/init@5f8171a638ada777af81d42b55959a643bb29017 # v3.28.12
5156 with :
5257 languages : ${{ matrix.language }}
5358 # If you wish to specify custom queries, you can do so here or in a config file.
6166 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6267 # If this step fails, then you should remove it and run the build manually (see below)
6368 - name : Autobuild
64- uses : github/codeql-action/autobuild@v3
69+ uses : github/codeql-action/autobuild@5f8171a638ada777af81d42b55959a643bb29017 # v3.28.12
6570
6671 # ℹ️ Command-line programs to run using the OS shell.
6772 # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
7479 # ./location_of_script_within_repo/buildscript.sh
7580
7681 - name : Perform CodeQL Analysis
77- uses : github/codeql-action/analyze@v3
82+ uses : github/codeql-action/analyze@5f8171a638ada777af81d42b55959a643bb29017 # v3.28.12
7883 with :
7984 category : " /language:${{matrix.language}}"
0 commit comments