codeql-analysis.yml
This file
Path
.github/workflows/codeql-analysis.yml
74 lines · 2.6 KiB · YAML
Last changed by
Add Zizmor workflow and make initial updatesNate Prewittbefore adoptioncbce031
History of this fileTake it
The walk stopped after 200 commits: lines older than 2d55176 point at it.
Fix inconsistent exception for JSONDecode error (#6097)Nate Prewittbefore adoption2d55176
lines 1–16why, 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: [main]11 pull_request:12 # The branches below must be a subset of the branches above13 branches: [main]14 schedule:15 - cron: '0 23 * * 0'16ci: add minimum GitHub token permissions for workflows (#6236)Ashish Kurmibefore adoptioneb07385
lines 17–19why, one step back17permissions:18 contents: read19Fix inconsistent exception for JSONDecode error (#6097)Nate Prewittbefore adoption2d55176
lines 20–21why, one step back20jobs:21 analyze:ci: add minimum GitHub token permissions for workflows (#6236)Ashish Kurmibefore adoptioneb07385
lines 22–25why, one step back22 permissions:23 actions: read # for github/codeql-action/init to get workflow details24 contents: read # for actions/checkout to fetch code25 security-events: write # for github/codeql-action/autobuild to send a status reportFix inconsistent exception for JSONDecode error (#6097)Nate Prewittbefore adoption2d55176
lines 26–34why, one step back26 name: Analyze27 runs-on: ubuntu-latest2829 strategy:30 fail-fast: false313233 steps:34 - name: Checkout repositoryMerge pull request #7092 from psf/dependabot/github_actions/actions/checkout-6.0.0Nate Prewittbefore adoption49f8968
line 35why, one step back35 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2Fix inconsistent exception for JSONDecode error (#6097)Nate Prewittbefore adoption2d55176
lines 36–39why, one step back36 with:37 # We must fetch at least the immediate parents so that if this is38 # a pull request then we can checkout the head.39 fetch-depth: 2Add Zizmor workflow and make initial updatesNate Prewittbefore adoptioncbce031
line 40why, one step back40 persist-credentials: falseFix inconsistent exception for JSONDecode error (#6097)Nate Prewittbefore adoption2d55176
lines 41–48why, one step back4142 # If this run was triggered by a pull request event, then checkout43 # the head of the pull request instead of the merge commit.44 - run: git checkout HEAD^245 if: ${{ github.event_name == 'pull_request' }}4647 # Initializes the CodeQL tools for scanning.48 - name: Initialize CodeQLBump github/codeql-action from 4.34.1 to 4.35.1dependabot[bot]before adoption6360477
line 49why, one step back49 uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1Fix inconsistent exception for JSONDecode error (#6097)Nate Prewittbefore adoption2d55176
lines 50–52why, one step back50 with:51 languages: "python"52 # If you wish to specify custom queries, you can do so here or in a config file.Add automatic code formatting to Requests (#6095)Nate Prewittbefore adoption2a6f290
line 53why, one step back53 # By default, queries listed here will override any specified in a config file.Fix inconsistent exception for JSONDecode error (#6097)Nate Prewittbefore adoption2d55176
lines 54–59why, one step back54 # Prefix the list here with "+" to use these queries and those in the config file.55 # queries: ./path/to/local/query, your-org/your-repo/queries@main5657 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).58 # If this step fails, then you should remove it and run the build manually (see below)59 - name: AutobuildBump github/codeql-action from 4.34.1 to 4.35.1dependabot[bot]before adoption6360477
line 60why, one step back60 uses: github/codeql-action/autobuild@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1Fix inconsistent exception for JSONDecode error (#6097)Nate Prewittbefore adoption2d55176
lines 61–73why, one step back6162 # ℹ️ Command-line programs to run using the OS shell.63 # 📚 https://git.io/JvXDl6465 # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines66 # and modify them (or add more) to build your code if your project67 # uses a compiled language6869 #- run: |70 # make bootstrap71 # make release7273 - name: Perform CodeQL AnalysisBump github/codeql-action from 4.34.1 to 4.35.1dependabot[bot]before adoption6360477
line 74why, one step back74 uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1