2.4 KB66 lines
Blame
1name: 'CodeQL'
2
3on:
4 push:
5 branches: [develop]
6 pull_request:
7 # The branches below must be a subset of the branches above
8 branches: [develop]
9 types:
10 - opened
11 - synchronize
12 - ready_for_review
13
14permissions: # added using https://github.com/step-security/secure-repo
15 contents: read
16
17jobs:
18 analyze:
19 name: Analyze
20 runs-on: ubuntu-latest
21 permissions:
22 actions: read
23 contents: read
24 security-events: write
25
26 strategy:
27 fail-fast: false
28 matrix:
29 language: ['javascript', 'actions']
30 # CodeQL supports [ 'actions', 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
31 # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
32
33 steps:
34 - name: Checkout repository
35 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
36
37 # Initializes the CodeQL tools for scanning.
38 - name: Initialize CodeQL
39 uses: github/codeql-action/init@5378192d256ef1302a6980fffe5ca04426d43091 # v3.28.21
40 with:
41 config-file: ./.github/codeql/codeql-config.yml
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
47
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)
50 - name: Autobuild
51 uses: github/codeql-action/autobuild@5378192d256ef1302a6980fffe5ca04426d43091 # v3.28.21
52
53 # â„šī¸ Command-line programs to run using the OS shell.
54 # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
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
63
64 - name: Perform CodeQL Analysis
65 uses: github/codeql-action/analyze@5378192d256ef1302a6980fffe5ca04426d43091 # v3.28.21
66