codeql.yml
This file
Path
.github/workflows/codeql.yml
49 lines · 1.5 KiB · YAML
Last changed by
chore(deps): bump actions/checkout from 3 to 4 (#3712)dependabot[bot]before adoptionc2ba8f1
History of this fileTake it
feat(CodeQL): Discover vulnerabilities across a codebase with CodeQL (#3049)Bo-Yi Wubefore adoptionc19374c
lines 1–35why, one step back1# For most projects, this workflow file will not need changing; you simply need2# to commit it to your repository.3#4# You may wish to alter this file to override the set of languages analyzed,5# or to provide custom queries or build logic.6name: "CodeQL"78on:9 push:10 branches: [ master ]11 pull_request:12 # The branches below must be a subset of the branches above13 branches: [ master ]14 schedule:15 - cron: '0 17 * * 5'1617jobs:18 analyze:19 name: Analyze20 runs-on: ubuntu-latest2122 permissions:23 # required for all workflows24 security-events: write2526 strategy:27 fail-fast: false28 matrix:29 # Override automatic language detection by changing the below list30 # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']31 # TODO: Enable for javascript later32 language: [ 'go']3334 steps:35 - name: Checkout repositorychore(deps): bump actions/checkout from 3 to 4 (#3712)dependabot[bot]before adoptionc2ba8f1
line 36why, one step back36 uses: actions/checkout@v4feat(CodeQL): Discover vulnerabilities across a codebase with CodeQL (#3049)Bo-Yi Wubefore adoptionc19374c
lines 37–39why, one step back3738 # Initializes the CodeQL tools for scanning.39 - name: Initialize CodeQLchore(deps): bump github/codeql-action from 1 to 2 (#3132)dependabot[bot]before adoption90e7073
line 40why, one step back40 uses: github/codeql-action/init@v2feat(CodeQL): Discover vulnerabilities across a codebase with CodeQL (#3049)Bo-Yi Wubefore adoptionc19374c
lines 41–48why, one step back41 with: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@main4748 - name: Perform CodeQL Analysischore(deps): bump github/codeql-action from 1 to 2 (#3132)dependabot[bot]before adoption90e7073
line 49why, one step back49 uses: github/codeql-action/analyze@v2