5 branches: [ 'master', 'gh-pages', 'release' ]
7 # The branches below must be a subset of the branches above
15 runs-on: ubuntu-latest
19 security-events: write
24 language: [ 'python' ]
25 # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
26 # Use only 'java' to analyze code written in Java, Kotlin or both
27 # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
28 # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
31 - name: Checkout repository
32 uses: actions/checkout@v4
34 # Initializes the CodeQL tools for scanning.
35 - name: Initialize CodeQL
36 uses: github/codeql-action/init@v2
38 languages: ${{ matrix.language }}
39 # If you wish to specify custom queries, you can do so here or in a config file.
40 # By default, queries listed here will override any specified in a config file.
41 # Prefix the list here with "+" to use these queries and those in the config file.
43 # 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
44 # queries: security-extended,security-and-quality
47 # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
48 # If this step fails, then you should remove it and run the build manually (see below)
50 uses: github/codeql-action/autobuild@v2
52 # âšī¸ Command-line programs to run using the OS shell.
53 # đ See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
55 # If the Autobuild fails above, remove it and uncomment the following three lines.
56 # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
59 # echo "Run, Build Application using script"
60 # ./location_of_script_within_repo/buildscript.sh
62 - name: Perform CodeQL Analysis
63 uses: github/codeql-action/analyze@v2
65 category: "/language:${{matrix.language}}"