Repository navigation
58 lines (51 loc) · 1.82 KB
/
Copy pathcodeql.yml
File metadata and controls
58 lines (51 loc) · 1.82 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
name: CodeQL
# v2.9.209: switch from GitHub default-setup to advanced setup so we can
# point at .github/codeql/codeql-config.yml and exclude the two queries
# whose findings are intentional design (TLS skip on probe clients, and
# user-driven outbound network requests). See that file for the rationale.
#
# Resolved (v2.9.225): merged with main's GitHub-generated `Create codeql.yml`
# (commit 64dee02) — kept our config-file path (the whole point of the PR),
# adopted main's v4 action versions and `packages: read` permission, kept
# Go-only since this project has no JS/TS source.
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 6 * * 1"
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
packages: read
security-events: write
strategy:
fail-fast: false
matrix:
include:
- language: go
build-mode: autobuild
# v2.9.225: keep parity with main's GitHub-generated workflow which
# also scans javascript-typescript. The repo has one real .js
# (web/static/sw.js, the PWA service worker) plus inline <script>
# blocks in HTML templates. No build step needed for JS.
- language: javascript-typescript
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
config-file: ./.github/codeql/codeql-config.yml
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"