1- # For most projects, this workflow file will not need changing; you simply need
2- # to commit it to your repository.
3- #
4- # You may wish to alter this file to override the set of languages analyzed,
5- # or to provide custom queries or build logic.
6- #
1+ # Security vulnerability scanning using CodeQL, the semantic code analysis engine.
2+ # See:
3+ # https://github.com/github/codeql-action
4+ # https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-the-codeql-workflow-for-compiled-languages#go
75name : " CodeQL"
86
97on :
@@ -19,47 +17,21 @@ jobs:
1917 name : Analyze
2018 runs-on : ubuntu-latest
2119 permissions :
22- actions : read
23- contents : read
2420 security-events : write
2521
26- strategy :
27- fail-fast : false
28- matrix :
29- language : [ 'go' ]
30- # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
31- # Learn more:
32- # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
33-
3422 steps :
3523 - name : Checkout repository
3624 uses : actions/checkout@v3
3725
3826 # Initializes the CodeQL tools for scanning.
3927 - name : Initialize CodeQL
40- uses : github/codeql-action/init@v1
28+ uses : github/codeql-action/init@v2
4129 with :
42- languages : ${{ matrix.language }}
43- # If you wish to specify custom queries, you can do so here or in a config file.
44- # By default, queries listed here will override any specified in a config file.
45- # Prefix the list here with "+" to use these queries and those in the config file.
46- # queries: ./path/to/local/query, your-org/your-repo/queries@main
30+ languages : go
4731
48- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
49- # If this step fails, then you should remove it and run the build manually (see below)
32+ # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
5033 - name : Autobuild
51- uses : github/codeql-action/autobuild@v1
52-
53- # ℹ️ Command-line programs to run using the OS shell.
54- # 📚 https://git.io/JvXDl
55-
56- # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
57- # and modify them (or add more) to build your code if your project
58- # uses a compiled language
59-
60- # - run: |
61- # make bootstrap
62- # make release
34+ uses : github/codeql-action/autobuild@v2
6335
6436 - name : Perform CodeQL Analysis
65- uses : github/codeql-action/analyze@v1
37+ uses : github/codeql-action/analyze@v2
0 commit comments