Repository navigation
57 lines (53 loc) · 1.7 KB
/
Copy pathcodeql.yml
File metadata and controls
57 lines (53 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
# Code scanning of the Go server and the TypeScript of the UI; results go to the Security tab.
name: CodeQL
on:
push:
branches: ['**']
tags-ignore: ['**']
pull_request:
schedule:
- cron: '17 4 * * 1' # new queries find old code too
workflow_dispatch:
permissions:
contents: read
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: CodeQL ${{ matrix.language }}
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
include:
- language: go
build-mode: manual
- language: javascript-typescript
build-mode: none
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- if: matrix.language == 'go'
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: server/go.mod
cache-dependency-path: server/go.mod
- uses: github/codeql-action/init@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# Generated code, the legacy viewer and the built UI are not ours to scan
config: |
paths-ignore:
- legacy
- server/web/dist
- ui/src/lib/api/schema.gen.d.ts
- '**/*.gen.go'
- if: matrix.build-mode == 'manual'
run: cd server && go build ./...
- uses: github/codeql-action/analyze@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
with:
category: /language:${{ matrix.language }}