1 name: "Code scanning - action"
6 branches-ignore: "dependabot/**"
11 contents: read # to fetch code (actions/checkout)
16 contents: read # to fetch code (actions/checkout)
17 security-events: write # (github/codeql-action/autobuild)
19 runs-on: ubuntu-latest
22 - name: Checkout repository
23 uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
25 # We must fetch at least the immediate parents so that if this is
26 # a pull request then we can checkout the head.
29 # If this run was triggered by a pull request event, then checkout
30 # the head of the pull request instead of the merge commit.
31 - run: git checkout HEAD^2
32 if: ${{ github.event_name == 'pull_request' }}
34 # Initializes the CodeQL tools for scanning.
35 - name: Initialize CodeQL
36 uses: github/codeql-action/init@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9
37 # Override language selection by uncommenting this and choosing your languages
39 # languages: go, javascript, csharp, python, cpp, java
41 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
42 # If this step fails, then you should remove it and run the build manually (see below)
44 uses: github/codeql-action/autobuild@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9
46 # âšī¸ Command-line programs to run using the OS shell.
47 # đ https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
49 # âī¸ If the Autobuild fails above, remove it and uncomment the following three lines
50 # and modify them (or add more) to build your code if your project
51 # uses a compiled language
57 - name: Perform CodeQL Analysis
58 uses: github/codeql-action/analyze@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9