forked from Phixsura/attune
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (55 loc) · 1.84 KB
/
Copy pathcodeql.yml
File metadata and controls
58 lines (55 loc) · 1.84 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
# CodeQL — semantic security analysis for the Go backend and the React/TS
# console. Findings land in Security → Code scanning.
name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "27 3 * * 1" # weekly catch-all (Mon 03:27 UTC)
permissions:
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
# Manual build (not autobuild) so CodeQL traces BOTH the main module
# and the nested sdk/go module — autobuild only builds the main one.
- language: go
build-mode: manual
- language: javascript-typescript
build-mode: none
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- if: matrix.language == 'go'
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- name: Initialize CodeQL
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
queries: security-and-quality
# Build both Go modules so CodeQL extracts the SDK too (the root toolchain
# satisfies sdk/go's 1.25 floor).
- if: matrix.language == 'go'
name: Build Go modules
run: |
go build ./...
(cd sdk/go && go build ./...)
- name: Analyze
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
category: "/language:${{ matrix.language }}"