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 workflow_dispatch:
10
11 permissions:
12 contents: read
13
14 jobs:
15 analyze:
16 permissions:
17 actions: read # for github/codeql-action/init to get workflow details
18 contents: read # for actions/checkout to fetch code
19 security-events: write # for github/codeql-action/autobuild to send a status report
20 name: Analyze
21 runs-on: ubuntu-latest
22
23 strategy:
24 fail-fast: false
25 matrix:
26 language: ['go']
27
28 steps:
29 - name: Checkout repository
30 uses: actions/checkout@v7
31 with:
32 fetch-depth: 0
33
34 # Initializes the CodeQL tools for scanning.
35 - name: Initialize CodeQL
36 uses: github/codeql-action/init@v4
37 with:
38 languages: ${{ matrix.language }}
39
40 - name: Autobuild
41 uses: github/codeql-action/autobuild@v4
42
43 - name: Perform CodeQL Analysis
44 uses: github/codeql-action/analyze@v4