Skip to content
Myr

codeql-analysis.yml

This file

Path

.github/workflows/codeql-analysis.yml

66 lines · 2.1 KiB · YAML

Last changed by

Add automatic code formatting to Requests (#6095)Nate Prewittbefore adoption2a6f290

History of this file

Take it

Merge pull request #5611 from psf/add-codescanningIan Stapleton Cordascobefore adoption4f6c018

lines 1–9why, one step back
1# For most projects, this workflow file will not need changing; you simply need
2# 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 back
10 branches: [main]

Merge pull request #5611 from psf/add-codescanningIan Stapleton Cordascobefore adoption4f6c018

lines 11–12why, one step back
11 pull_request:
12 # The branches below must be a subset of the branches above

Update codeql branch target (#5913)Nate Prewittbefore adoptionb351e90

line 13why, one step back
13 branches: [main]

Merge pull request #5611 from psf/add-codescanningIan Stapleton Cordascobefore adoption4f6c018

lines 14–44why, one step back
14 schedule:
15 - cron: '0 23 * * 0'1617jobs:18 analyze:19 name: Analyze20 runs-on: ubuntu-latest2122 strategy:23 fail-fast: false242526 steps:27 - name: Checkout repository28 uses: actions/checkout@v229 with:30 # We must fetch at least the immediate parents so that if this is31 # a pull request then we can checkout the head.32 fetch-depth: 23334 # If this run was triggered by a pull request event, then checkout35 # the head of the pull request instead of the merge commit.36 - run: git checkout HEAD^237 if: ${{ github.event_name == 'pull_request' }}3839 # Initializes the CodeQL tools for scanning.40 - name: Initialize CodeQL41 uses: github/codeql-action/init@v142 with:43 languages: "python"44 # 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 45why, one step back
45 # 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 46–66why, one step back
46 # Prefix the list here with "+" to use these queries and those in the config file.
47 # queries: ./path/to/local/query, your-org/your-repo/queries@main4849 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).50 # If this step fails, then you should remove it and run the build manually (see below)51 - name: Autobuild52 uses: github/codeql-action/autobuild@v15354 # ℹ️ Command-line programs to run using the OS shell.55 # 📚 https://git.io/JvXDl5657 # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines58 # and modify them (or add more) to build your code if your project59 # uses a compiled language6061 #- run: |62 # make bootstrap63 # make release6465 - name: Perform CodeQL Analysis66 uses: github/codeql-action/analyze@v1