codeql-analysis.yml
This file
Path
.github/workflows/codeql-analysis.yml
73 lines · 2.6 KiB · YAML
Last changed by
Merge pull request #6687 from psf/dependabot/github_actions/github/codeql-action-3.25.0Nate Prewittbefore adoptionf1bb07d
History of this fileTake it
Merge pull request #5611 from psf/add-codescanningIan Stapleton Cordascobefore adoption4f6c018
lines 1–9why, 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:Update codeql branch target (#5913)Nate Prewittbefore adoptionb351e90
line 10why, one step back10 branches: [main]Merge pull request #5611 from psf/add-codescanningIan Stapleton Cordascobefore adoption4f6c018
lines 11–12why, one step back11 pull_request:12 # The branches below must be a subset of the branches aboveUpdate codeql branch target (#5913)Nate Prewittbefore adoptionb351e90
line 13why, one step back13 branches: [main]Merge pull request #5611 from psf/add-codescanningIan Stapleton Cordascobefore adoption4f6c018
lines 14–16why, one step back14 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: read19Merge pull request #5611 from psf/add-codescanningIan Stapleton Cordascobefore adoption4f6c018
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 reportMerge pull request #5611 from psf/add-codescanningIan Stapleton Cordascobefore adoption4f6c018
lines 26–34why, one step back26 name: Analyze27 runs-on: ubuntu-latest2829 strategy:30 fail-fast: false313233 steps:34 - name: Checkout repositoryMerge pull request #6538 from psf/dependabot/github_actions/actions/checkout-4.1.0Nate Prewittbefore adoptionee93fac
line 35why, one step back35 uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0Merge pull request #5611 from psf/add-codescanningIan Stapleton Cordascobefore adoption4f6c018
lines 36–47why, 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: 24041 # If this run was triggered by a pull request event, then checkout42 # the head of the pull request instead of the merge commit.43 - run: git checkout HEAD^244 if: ${{ github.event_name == 'pull_request' }}4546 # Initializes the CodeQL tools for scanning.47 - name: Initialize CodeQLMerge pull request #6687 from psf/dependabot/github_actions/github/codeql-action-3.25.0Nate Prewittbefore adoptionf1bb07d
line 48why, one step back48 uses: github/codeql-action/init@df5a14dc28094dc936e103b37d749c6628682b60 # v3.25.0Merge pull request #5611 from psf/add-codescanningIan Stapleton Cordascobefore adoption4f6c018
lines 49–51why, one step back49 with:50 languages: "python"51 # 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 52why, one step back52 # By default, queries listed here will override any specified in a config file.Merge pull request #5611 from psf/add-codescanningIan Stapleton Cordascobefore adoption4f6c018
lines 53–58why, one step back53 # Prefix the list here with "+" to use these queries and those in the config file.54 # queries: ./path/to/local/query, your-org/your-repo/queries@main5556 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).57 # If this step fails, then you should remove it and run the build manually (see below)58 - name: AutobuildMerge pull request #6687 from psf/dependabot/github_actions/github/codeql-action-3.25.0Nate Prewittbefore adoptionf1bb07d
line 59why, one step back59 uses: github/codeql-action/autobuild@df5a14dc28094dc936e103b37d749c6628682b60 # v3.25.0Merge pull request #5611 from psf/add-codescanningIan Stapleton Cordascobefore adoption4f6c018
lines 60–72why, one step back6061 # ℹ️ Command-line programs to run using the OS shell.62 # 📚 https://git.io/JvXDl6364 # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines65 # and modify them (or add more) to build your code if your project66 # uses a compiled language6768 #- run: |69 # make bootstrap70 # make release7172 - name: Perform CodeQL AnalysisMerge pull request #6687 from psf/dependabot/github_actions/github/codeql-action-3.25.0Nate Prewittbefore adoptionf1bb07d
line 73why, one step back73 uses: github/codeql-action/analyze@df5a14dc28094dc936e103b37d749c6628682b60 # v3.25.0