-
Notifications
You must be signed in to change notification settings - Fork 35
59 lines (50 loc) · 1.7 KB
/
Copy pathcode-scanning.yml
File metadata and controls
59 lines (50 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Code Scanning
on:
push:
branches: ["main"]
pull_request:
branches: ["main", "release/**"]
schedule:
- cron: "0 3 * * 1"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: read
contents: read
security-events: write
jobs:
codeql:
name: CodeQL Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# The dashboard is compiled into the binary, so its TypeScript ships in
# the same artifact the Go does and belongs in the same perimeter. It is
# also the half that renders operator-supplied config and API keys in a
# browser, which is the half Go analysis says nothing about.
#
# javascript-typescript needs no build: CodeQL reads the sources, and
# Autobuild is a no-op for it.
language: ["go", "javascript-typescript"]
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Go
if: matrix.language == 'go'
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: "1.25.13"
check-latest: true
cache: true
- name: Initialize CodeQL
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4