Debian Codegraph @

.github/workflows/codeql.yml

raw symbols SCIP
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@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
28
29 # Initializes the CodeQL tools for scanning.
30 - name: Initialize CodeQL
31 uses: github/codeql-action/init@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
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@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
43 with:
44 category: "/language:${{matrix.language}}"