Debian Codegraph @

.github/workflows/codeql-analysis.yml

raw
1 name: "CodeQL"
2
3 permissions:
4 contents: read
5 security-events: write
6
7 on:
8 push:
9 branches: [master]
10 pull_request:
11 branches: [master]
12 schedule:
13 - cron: '0 14 * * 3'
14
15 jobs:
16 analyze:
17 name: Analyze
18 runs-on: ubuntu-latest
19
20 strategy:
21 fail-fast: false
22 matrix:
23 language: ['go']
24
25 steps:
26 - name: Checkout repository
27 uses: actions/checkout@v6
28 with:
29 fetch-depth: 2
30
31 - run: git checkout HEAD^2
32 if: ${{ github.event_name == 'pull_request' }}
33
34 - name: Initialize CodeQL
35 uses: github/codeql-action/init@v4
36 with:
37 languages: ${{ matrix.language }}
38
39 - name: Autobuild
40 uses: github/codeql-action/autobuild@v4
41
42 - name: Perform CodeQL Analysis
43 uses: github/codeql-action/analyze@v4