You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Give the workflow a shorter name
- Also trigger on "run-ci" branches (in addition to main)
- Also allow to be triggered from Actions tab
- Comment out currently unneeded permissions
- Use v5 of actions/checkout (rather than v4)
- Don't persist auth token after checkout (see #2187)
Copy file name to clipboardExpand all lines: .github/workflows/codeql.yml
+14-7Lines changed: 14 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -9,15 +9,20 @@
9
9
# the `language` matrix defined below to confirm you have the correct set of
10
10
# supported CodeQL languages.
11
11
#
12
-
name: "CodeQL Advanced"
12
+
name: CodeQL
13
13
14
14
on:
15
15
push:
16
-
branches: [ "main" ]
16
+
branches:
17
+
- main
18
+
- 'run-ci/**'
19
+
- '**/run-ci/**'
17
20
pull_request:
18
-
branches: [ "main" ]
21
+
branches:
22
+
- main
19
23
schedule:
20
24
- cron: '32 3 * * 6'
25
+
workflow_dispatch:
21
26
22
27
jobs:
23
28
analyze:
@@ -33,11 +38,11 @@ jobs:
33
38
security-events: write
34
39
35
40
# required to fetch internal or private CodeQL packs
36
-
packages: read
41
+
#packages: read
37
42
38
43
# only required for workflows in private repositories
39
-
actions: read
40
-
contents: read
44
+
#actions: read
45
+
#contents: read
41
46
42
47
strategy:
43
48
fail-fast: false
@@ -57,7 +62,9 @@ jobs:
57
62
# 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
58
63
steps:
59
64
- name: Checkout repository
60
-
uses: actions/checkout@v4
65
+
uses: actions/checkout@v5
66
+
with:
67
+
persist-credentials: false
61
68
62
69
# Add any setup steps before running the `github/codeql-action/init` action.
63
70
# This includes steps like installing compilers or runtimes (`actions/setup-node`
0 commit comments