|
8 | 8 | paths-ignore:
|
9 | 9 | - '**/*.md'
|
10 | 10 |
|
| 11 | +concurrency: |
| 12 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 13 | + cancel-in-progress: true |
| 14 | + |
| 15 | +permissions: # added using https://github.com/step-security/secure-workflows |
| 16 | + contents: read |
| 17 | + |
11 | 18 | jobs:
|
12 | 19 | CodeQL-Build:
|
13 | 20 |
|
14 | 21 | # CodeQL runs on ubuntu-latest and windows-latest
|
| 22 | + permissions: |
| 23 | + actions: read # for github/codeql-action/init to get workflow details |
| 24 | + contents: read # for actions/checkout to fetch code |
| 25 | + security-events: write # for github/codeql-action/autobuild to send a status report |
15 | 26 | runs-on: ubuntu-latest
|
16 | 27 |
|
17 | 28 | steps:
|
18 |
| - - name: Checkout repository |
19 |
| - uses: actions/checkout@v2 |
20 |
| - |
21 |
| - # Initializes the CodeQL tools for scanning. |
22 |
| - - name: Initialize CodeQL |
23 |
| - uses: github/codeql-action/init@v1 |
24 |
| - # Override language selection by uncommenting this and choosing your languages |
25 |
| - # with: |
26 |
| - # languages: go, javascript, csharp, python, cpp, java |
27 |
| - |
28 |
| - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). |
29 |
| - # If this step fails, then you should remove it and run the build manually (see below) |
30 |
| - - name: Autobuild |
31 |
| - uses: github/codeql-action/autobuild@v1 |
32 |
| - |
33 |
| - # ℹ️ Command-line programs to run using the OS shell. |
34 |
| - # 📚 https://git.io/JvXDl |
35 |
| - |
36 |
| - # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines |
37 |
| - # and modify them (or add more) to build your code if your project |
38 |
| - # uses a compiled language |
39 |
| - |
40 |
| - #- run: | |
41 |
| - # make bootstrap |
42 |
| - # make release |
43 |
| - |
44 |
| - - name: Perform CodeQL Analysis |
45 |
| - uses: github/codeql-action/analyze@v1 |
| 29 | + - name: Checkout repository |
| 30 | + uses: actions/checkout@v3.1.0 |
| 31 | + |
| 32 | + # Initializes the CodeQL tools for scanning. |
| 33 | + - name: Initialize CodeQL |
| 34 | + uses: github/codeql-action/init@v2 |
| 35 | + # Override language selection by uncommenting this and choosing your languages |
| 36 | + # with: |
| 37 | + # languages: go, javascript, csharp, python, cpp, java |
| 38 | + |
| 39 | + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). |
| 40 | + # If this step fails, then you should remove it and run the build manually (see below) |
| 41 | + - name: Autobuild |
| 42 | + uses: github/codeql-action/autobuild@v2 |
| 43 | + |
| 44 | + # ℹ️ Command-line programs to run using the OS shell. |
| 45 | + # 📚 https://git.io/JvXDl |
| 46 | + |
| 47 | + # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines |
| 48 | + # and modify them (or add more) to build your code if your project |
| 49 | + # uses a compiled language |
| 50 | + |
| 51 | + #- run: | |
| 52 | + # make bootstrap |
| 53 | + # make release |
| 54 | + |
| 55 | + - name: Perform CodeQL Analysis |
| 56 | + uses: github/codeql-action/analyze@v2 |
0 commit comments