19
19
name : Analyze
20
20
runs-on : ubuntu-latest
21
21
22
+ permissions :
23
+ contents : read
24
+ security-events : write
25
+
22
26
strategy :
23
27
fail-fast : false
24
28
matrix :
@@ -30,11 +34,12 @@ jobs:
30
34
31
35
steps :
32
36
- name : Checkout repository
33
- uses : actions/checkout@v3
37
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34
38
with :
35
39
# We must fetch at least the immediate parents so that if this is
36
40
# a pull request then we can checkout the head.
37
41
fetch-depth : 2
42
+ persist-credentials : false
38
43
39
44
# If this run was triggered by a pull request event, then checkout
40
45
# the head of the pull request instead of the merge commit.
43
48
44
49
# Initializes the CodeQL tools for scanning.
45
50
- name : Initialize CodeQL
46
- uses : github/codeql-action/init@v2
51
+ uses : github/codeql-action/init@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
47
52
with :
48
53
languages : ${{ matrix.language }}
49
54
# If you wish to specify custom queries, you can do so here or in a config file.
54
59
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55
60
# If this step fails, then you should remove it and run the build manually (see below)
56
61
- name : Autobuild
57
- uses : github/codeql-action/autobuild@v2
62
+ uses : github/codeql-action/autobuild@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
58
63
59
64
# ℹ️ Command-line programs to run using the OS shell.
60
65
# 📚 https://git.io/JvXDl
68
73
# make release
69
74
70
75
- name : Perform CodeQL Analysis
71
- uses : github/codeql-action/analyze@v2
76
+ uses : github/codeql-action/analyze@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
0 commit comments