Debian Codegraph @

.github/workflows/codeql.yml

raw symbols SCIP
1 name: CodeQL
2
3 on:
4 push:
5 branches: [ "main" ]
6 pull_request:
7 schedule:
8 - cron: '00 5 * * 1'
9
10 permissions: {}
11
12 jobs:
13 analyze:
14 name: Analyze
15 runs-on: ubuntu-latest
16 permissions:
17 actions: read
18 contents: read
19 security-events: write
20
21 strategy:
22 fail-fast: false
23 matrix:
24 language: [ 'go', 'actions' ]
25
26 steps:
27 - name: Checkout code
28 uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
29
30 # Initializes the CodeQL tools for scanning.
31 - name: Initialize CodeQL
32 uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee # v3.29.5
33 with:
34 languages: ${{ matrix.language }}
35 # 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
36 # xref: https://codeql.github.com/codeql-query-help/go/
37 queries: security-and-quality
38
39 - name: Manual Build
40 run: go build ./...
41
42 - name: Perform CodeQL Analysis
43 uses: github/codeql-action/analyze@0499de31b99561a6d14a36a5f662c2a54f91beee # v3.29.5
44 with:
45 category: "/language:${{matrix.language}}"