Debian Codegraph @

.github/workflows/codeql.yml

raw
1 name: "CodeQL"
2
3 on:
4 push:
5 branches: [ "master" ]
6 pull_request:
7 branches: [ "master" ]
8 schedule:
9 - cron: '00 5 * * 1'
10
11 jobs:
12 analyze:
13 name: Analyze
14 runs-on: ubuntu-latest
15 permissions:
16 actions: read
17 contents: read
18 security-events: write
19
20 strategy:
21 fail-fast: false
22 matrix:
23 language: [ 'go' ]
24
25 steps:
26 - name: Checkout code
27 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
28
29 # Initializes the CodeQL tools for scanning.
30 - name: Initialize CodeQL
31 uses: github/codeql-action/init@1f86f55dce064513e2111b0d4fc7cfb11444c092 # v2.22.11
32 with:
33 languages: ${{ matrix.language }}
34 # xref: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
35 # xref: https://codeql.github.com/codeql-query-help/go/
36 queries: security-and-quality
37
38 - name: Manual Build
39 run: go build ./...
40
41 - name: Perform CodeQL Analysis
42 uses: github/codeql-action/analyze@1f86f55dce064513e2111b0d4fc7cfb11444c092 # v2.22.11
43 with:
44 category: "/language:${{matrix.language}}"