1c9d92d70SMark Prins# For most projects, this workflow file will not need changing; you simply need 2c9d92d70SMark Prins# to commit it to your repository. 3c9d92d70SMark Prins# 4c9d92d70SMark Prins# You may wish to alter this file to override the set of languages analyzed, 5c9d92d70SMark Prins# or to provide custom queries or build logic. 6c9d92d70SMark Prins# 7c9d92d70SMark Prins# ******** NOTE ******** 8c9d92d70SMark Prins# We have attempted to detect the languages in your repository. Please check 9c9d92d70SMark Prins# the `language` matrix defined below to confirm you have the correct set of 10c9d92d70SMark Prins# supported CodeQL languages. 11c9d92d70SMark Prins# 12c9d92d70SMark Prinsname: "CodeQL" 13c9d92d70SMark Prins 14c9d92d70SMark Prinson: 15c9d92d70SMark Prins push: 16c9d92d70SMark Prins branches: [ master ] 17c9d92d70SMark Prins pull_request: 18c9d92d70SMark Prins # The branches below must be a subset of the branches above 19c9d92d70SMark Prins branches: [ master ] 20c9d92d70SMark Prins schedule: 21c9d92d70SMark Prins - cron: '25 5 * * 0' 22c9d92d70SMark Prins 23c9d92d70SMark Prinsjobs: 24c9d92d70SMark Prins analyze: 25c9d92d70SMark Prins name: Analyze 26c9d92d70SMark Prins runs-on: ubuntu-latest 27c9d92d70SMark Prins permissions: 28c9d92d70SMark Prins actions: read 29c9d92d70SMark Prins contents: read 30c9d92d70SMark Prins security-events: write 31c9d92d70SMark Prins 32c9d92d70SMark Prins strategy: 33c9d92d70SMark Prins fail-fast: false 34c9d92d70SMark Prins matrix: 35c9d92d70SMark Prins language: [ 'javascript' ] 36c9d92d70SMark Prins # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] 37c9d92d70SMark Prins # Learn more about CodeQL language support at https://git.io/codeql-language-support 38c9d92d70SMark Prins 39c9d92d70SMark Prins steps: 40c9d92d70SMark Prins - name: Checkout repository 4140c80c03Sdependabot[bot] uses: actions/checkout@v3 42c9d92d70SMark Prins 43c9d92d70SMark Prins # Initializes the CodeQL tools for scanning. 44c9d92d70SMark Prins - name: Initialize CodeQL 45*08561a67Sdependabot[bot] uses: github/codeql-action/init@v2 46c9d92d70SMark Prins with: 47c9d92d70SMark Prins languages: ${{ matrix.language }} 48c9d92d70SMark Prins # If you wish to specify custom queries, you can do so here or in a config file. 49c9d92d70SMark Prins # By default, queries listed here will override any specified in a config file. 50c9d92d70SMark Prins # Prefix the list here with "+" to use these queries and those in the config file. 51c9d92d70SMark Prins # queries: ./path/to/local/query, your-org/your-repo/queries@main 52c9d92d70SMark Prins 53c9d92d70SMark Prins # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). 54c9d92d70SMark Prins # If this step fails, then you should remove it and run the build manually (see below) 55c9d92d70SMark Prins - name: Autobuild 56*08561a67Sdependabot[bot] uses: github/codeql-action/autobuild@v2 57c9d92d70SMark Prins 58c9d92d70SMark Prins # ℹ️ Command-line programs to run using the OS shell. 59c9d92d70SMark Prins # https://git.io/JvXDl 60c9d92d70SMark Prins 61c9d92d70SMark Prins # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines 62c9d92d70SMark Prins # and modify them (or add more) to build your code if your project 63c9d92d70SMark Prins # uses a compiled language 64c9d92d70SMark Prins 65c9d92d70SMark Prins #- run: | 66c9d92d70SMark Prins # make bootstrap 67c9d92d70SMark Prins # make release 68c9d92d70SMark Prins 69c9d92d70SMark Prins - name: Perform CodeQL Analysis 70*08561a67Sdependabot[bot] uses: github/codeql-action/analyze@v2 71