@@ -42,12 +42,17 @@ jobs:
42
42
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
43
43
44
44
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
+
45
50
- name : Checkout repository
46
- uses : actions/checkout@v4
51
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
47
52
48
53
# Initializes the CodeQL tools for scanning.
49
54
- name : Initialize CodeQL
50
- uses : github/codeql-action/init@v3
55
+ uses : github/codeql-action/init@5f8171a638ada777af81d42b55959a643bb29017 # v3.28.12
51
56
with :
52
57
languages : ${{ matrix.language }}
53
58
# If you wish to specify custom queries, you can do so here or in a config file.
61
66
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
62
67
# If this step fails, then you should remove it and run the build manually (see below)
63
68
- name : Autobuild
64
- uses : github/codeql-action/autobuild@v3
69
+ uses : github/codeql-action/autobuild@5f8171a638ada777af81d42b55959a643bb29017 # v3.28.12
65
70
66
71
# ℹ️ Command-line programs to run using the OS shell.
67
72
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
74
79
# ./location_of_script_within_repo/buildscript.sh
75
80
76
81
- name : Perform CodeQL Analysis
77
- uses : github/codeql-action/analyze@v3
82
+ uses : github/codeql-action/analyze@5f8171a638ada777af81d42b55959a643bb29017 # v3.28.12
78
83
with :
79
84
category : " /language:${{matrix.language}}"
0 commit comments