|
1 | | -name: "CodeQL" |
| 1 | +name: CodeQL |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
5 | | - branches: [ "main" ] |
| 5 | + branches: [main] |
6 | 6 | pull_request: |
7 | | - branches: [ "main" ] |
| 7 | + branches: [main] |
8 | 8 | schedule: |
9 | | - - cron: '39 7 * * 6' |
| 9 | + - cron: "39 7 * * 6" |
| 10 | + |
| 11 | +permissions: |
| 12 | + contents: read |
| 13 | + |
| 14 | +concurrency: |
| 15 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 16 | + cancel-in-progress: ${{ github.event_name == 'pull_request' }} |
10 | 17 |
|
11 | 18 | jobs: |
12 | 19 | analyze: |
13 | 20 | name: Analyze |
14 | 21 | runs-on: ubuntu-latest |
15 | 22 | permissions: |
16 | | - actions: read |
17 | 23 | contents: read |
18 | 24 | security-events: write |
19 | | - |
20 | 25 | strategy: |
21 | 26 | fail-fast: false |
22 | 27 | matrix: |
23 | | - language: [ 'javascript', 'ruby' ] |
24 | | - |
| 28 | + language: [actions, javascript] |
25 | 29 | steps: |
26 | | - - name: Checkout repository |
27 | | - uses: actions/checkout@v7 |
28 | | - |
29 | | - # Initializes the CodeQL tools for scanning. |
30 | | - - name: Initialize CodeQL |
31 | | - uses: github/codeql-action/init@v4 |
32 | | - with: |
33 | | - languages: ${{ matrix.language }} |
34 | | - |
35 | | - |
36 | | - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). |
37 | | - # If this step fails, then you should remove it and run the build manually (see below) |
38 | | - - name: Autobuild |
39 | | - uses: github/codeql-action/autobuild@v4 |
40 | | - |
41 | | - # ℹ️ Command-line programs to run using the OS shell. |
42 | | - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
43 | | - |
44 | | - # If the Autobuild fails above, remove it and uncomment the following three lines. |
45 | | - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. |
| 30 | + - name: Checkout repository |
| 31 | + uses: actions/checkout@v7 |
46 | 32 |
|
47 | | - # - run: | |
48 | | - # echo "Run, Build Application using script" |
49 | | - # ./location_of_script_within_repo/buildscript.sh |
| 33 | + - name: Initialize CodeQL |
| 34 | + uses: github/codeql-action/init@v4 |
| 35 | + with: |
| 36 | + languages: ${{ matrix.language }} |
| 37 | + build-mode: none |
50 | 38 |
|
51 | | - - name: Perform CodeQL Analysis |
52 | | - uses: github/codeql-action/analyze@v4 |
| 39 | + - name: Perform CodeQL analysis |
| 40 | + uses: github/codeql-action/analyze@v4 |
0 commit comments