Debian Codegraph @

.github/workflows/codeql.yaml

raw symbols SCIP
1 # Copyright 2025 The go-yaml Project Contributors
2 # SPDX-License-Identifier: Apache-2.0
3
4 name: CodeQL Advanced
5
6 on:
7 push:
8 branches: [ main, v3, v2, v1 ]
9 pull_request:
10 branches: [ main, v3, v2, v1 ]
11 schedule:
12 - cron: 17 13 * * 3
13
14 permissions: read-all
15
16 jobs:
17 analyze:
18 name: Analyze (${{ matrix.language }})
19 runs-on: ubuntu-latest
20 permissions:
21 # required for all workflows
22 security-events: write
23
24 strategy:
25 fail-fast: false
26 matrix:
27 include:
28 - language: actions
29 build-mode: none
30 - language: go
31 build-mode: autobuild
32
33 steps:
34 - name: Checkout repository
35 uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
36 with:
37 persist-credentials: false
38
39 # Initializes the CodeQL tools for scanning.
40 - name: Initialize CodeQL
41 # yamllint disable-line rule:line-length
42 uses: github/codeql-action/init@87557b9c84dde89fdd9b10e88954ac2f4248e463 # v4.36.1
43 with:
44 languages: ${{ matrix.language }}
45 build-mode: ${{ matrix.build-mode }}
46
47 - name: Perform CodeQL Analysis
48 # yamllint disable-line rule:line-length
49 uses: github/codeql-action/analyze@87557b9c84dde89fdd9b10e88954ac2f4248e463 # v4.36.1
50 with:
51 category: /language:${{matrix.language}}