Debian Codegraph @

test-data/.github/workflows/codeql-analysis.yml

raw
1 name: "Code scanning - action"
2
3 on:
4 pull_request:
5 schedule:
6 - cron: '0 11 * * 2'
7
8 permissions:
9 security-events: write # Used by this action.
10
11 jobs:
12 CodeQL-Build:
13
14 runs-on: ubuntu-latest
15
16 steps:
17 - name: Checkout repository
18 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19 with:
20 # We must fetch at least the immediate parents so that if this is
21 # a pull request then we can checkout the head.
22 fetch-depth: 2
23 persist-credentials: false
24
25 # If this run was triggered by a pull request event, then checkout
26 # the head of the pull request instead of the merge commit.
27 - run: git checkout HEAD^2
28 if: ${{ github.event_name == 'pull_request' }}
29
30 # Initializes the CodeQL tools for scanning.
31 - name: Initialize CodeQL
32 uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2
33 with:
34 languages: go
35
36 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
37 # If this step fails, then you should remove it and run the build manually (see below)
38 - name: Autobuild
39 uses: github/codeql-action/autobuild@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2
40
41 # â„šī¸ Command-line programs to run using the OS shell.
42 # 📚 https://git.io/JvXDl
43
44 # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines
45 # and modify them (or add more) to build your code if your project
46 # uses a compiled language
47
48 #- run: |
49 # make bootstrap
50 # make release
51
52 - name: Perform CodeQL Analysis
53 uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2