···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: [ master ]
1717- pull_request:
1818- # The branches below must be a subset of the branches above
1919- branches: [ master ]
2020- schedule:
2121- - cron: '22 4 * * 0'
2222-2323-jobs:
2424- analyze:
2525- name: Analyze
2626- runs-on: ubuntu-latest
2727- permissions:
2828- actions: read
2929- contents: read
3030- security-events: write
3131-3232- strategy:
3333- fail-fast: false
3434- matrix:
3535- language: [ 'javascript' ]
3636- # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
3737- # Learn more about CodeQL language support at https://git.io/codeql-language-support
3838-3939- steps:
4040- - name: Checkout repository
4141- uses: actions/checkout@v3
4242-4343- # Initializes the CodeQL tools for scanning.
4444- - name: Initialize CodeQL
4545- uses: github/codeql-action/init@v2
4646- with:
4747- languages: ${{ matrix.language }}
4848- # If you wish to specify custom queries, you can do so here or in a config file.
4949- # By default, queries listed here will override any specified in a config file.
5050- # Prefix the list here with "+" to use these queries and those in the config file.
5151- # queries: ./path/to/local/query, your-org/your-repo/queries@main
5252-5353- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5454- # If this step fails, then you should remove it and run the build manually (see below)
5555- - name: Autobuild
5656- uses: github/codeql-action/autobuild@v2
5757-5858- # ℹ️ Command-line programs to run using the OS shell.
5959- # 📚 https://git.io/JvXDl
6060-6161- # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
6262- # and modify them (or add more) to build your code if your project
6363- # uses a compiled language
6464-6565- #- run: |
6666- # make bootstrap
6767- # make release
6868-6969- - name: Perform CodeQL Analysis
7070- uses: github/codeql-action/analyze@v2