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
- Rename it "CodeQL" (instead of "CodeQL Advanced").
- Expand and adjust event triggers, similar to other workflows.
- More query packs: `security-extended` and `security-and-quality`.
- Set empty workflow permissions (overridden at the job level).
- Remove unneeded job-level permissions.
- Clearly comment the job-level permissions that are kept.
- Use v6 of `actions/checkout` (rather than v4).
- Don't persist credentials in the `actions/checkout` step.
- Pin CodeQL-related actions (and checkout) with full SHA OIDs.
- Adjust style to match other workflow (where no reason not to).
security-events: write# For uploading SARIF to view in the Security tab.
34
41
35
42
# required to fetch internal or private CodeQL packs
36
-
packages: read
43
+
#packages: read
37
44
38
45
# only required for workflows in private repositories
39
-
actions: read
40
-
contents: read
46
+
#actions: read
47
+
#contents: read
41
48
42
49
strategy:
43
50
fail-fast: false
@@ -57,7 +64,9 @@ jobs:
57
64
# 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
# Prefix the list here with "+" to use these queries and those in the config file.
77
86
78
87
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
79
-
#queries: security-extended,security-and-quality
88
+
queries: security-extended,security-and-quality
80
89
81
90
# If the analyze step fails for one of the languages you are analyzing with
82
91
# "We were unable to automatically build your code", modify the matrix above
0 commit comments