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