···11+# For most projects, this workflow file will not need changing; you simply need
22+# to commit it to your repository.
33+#
44+# You may wish to alter this file to override the set of languages analyzed,
55+# or to provide custom queries or build logic.
66+#
77+# ******** NOTE ********
88+# We have attempted to detect the languages in your repository. Please check
99+# the `language` matrix defined below to confirm you have the correct set of
1010+# supported CodeQL languages.
1111+#
1212+name: "CodeQL"
1313+1414+on:
1515+ push:
1616+ branches: [ main ]
1717+ pull_request:
1818+ branches: [ main ]
1919+2020+jobs:
2121+ analyze:
2222+ name: Analyze
2323+ runs-on: ubuntu-latest
2424+ permissions:
2525+ actions: read
2626+ contents: read
2727+ security-events: write
2828+2929+ strategy:
3030+ fail-fast: false
3131+ matrix:
3232+ language: [ 'python' ]
3333+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
3434+ # Learn more:
3535+ # 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
3636+3737+ steps:
3838+ - name: Checkout repository
3939+ uses: actions/checkout@v2
4040+4141+ # Initializes the CodeQL tools for scanning.
4242+ - name: Initialize CodeQL
4343+ uses: github/codeql-action/init@v1
4444+ with:
4545+ languages: ${{ matrix.language }}
4646+ # If you wish to specify custom queries, you can do so here or in a config file.
4747+ # By default, queries listed here will override any specified in a config file.
4848+ # Prefix the list here with "+" to use these queries and those in the config file.
4949+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
5050+5151+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5252+ # If this step fails, then you should remove it and run the build manually (see below)
5353+ - name: Autobuild
5454+ uses: github/codeql-action/autobuild@v1
5555+5656+ # ℹ️ Command-line programs to run using the OS shell.
5757+ # 📚 https://git.io/JvXDl
5858+5959+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
6060+ # and modify them (or add more) to build your code if your project
6161+ # uses a compiled language
6262+6363+ #- run: |
6464+ # make bootstrap
6565+ # make release
6666+6767+ - name: Perform CodeQL Analysis
6868+ uses: github/codeql-action/analyze@v1