Debian Codegraph @

.github/workflows/codeql-analysis.yml

raw
1 # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning
2 name: CodeQL
3
4 on:
5 push:
6 branches: [ master, devel ]
7 pull_request:
8 branches: [ master ]
9 paths-ignore:
10 - '**/*.md'
11 - '**/*.txt'
12 - '**/*.json'
13 workflow_dispatch:
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@v5
28 with:
29 fetch-depth: 0
30
31 - name: Set up Go
32 uses: actions/setup-go@v6
33 with:
34 go-version: '>=1.21.x'
35
36 # Initializes the CodeQL tools for scanning.
37 - name: Initialize CodeQL
38 uses: github/codeql-action/init@v3
39 with:
40 languages: ${{ matrix.language }}
41
42 - name: Autobuild
43 uses: github/codeql-action/autobuild@v3
44
45 - name: Perform CodeQL Analysis
46 uses: github/codeql-action/analyze@v3
47