-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (57 loc) · 2.28 KB
/
Copy pathcodeql.yml
File metadata and controls
64 lines (57 loc) · 2.28 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
60
61
62
63
64
name: CodeQL
# Static analysis (SAST) over the TypeScript (the vscode-bynk extension + the
# embedded runtime — a real file since v0.48, so the Bearer JWT verifier is now
# in scope) and the Rust compiler. Free on this public repo; satisfies the
# OpenSSF Scorecard SAST check. SHA-pinned, the repo's posture (ADR 0087).
#
# CodeQL's load-bearing coverage here is the TypeScript surface; the Rust leg is
# maturing — defense-in-depth over what `clippy` + the type system already give.
# The *behavioral* guard for the emitted auth verifier is the bearer-auth test
# (`bynkc/tests/bearer_auth.rs`), not SAST — see ADR 0087.
on:
# SAST analyses only Rust + TypeScript, so skip docs/design/markdown-only
# changes — they cannot affect the analysed code, and re-analysing an
# unchanged tree is wasted CI. The weekly `schedule` below stays unfiltered so
# the default-branch baseline is always refreshed regardless. A mixed change
# (any non-ignored path also touched) still runs.
push:
branches: [main]
paths-ignore: &non_code_paths
- "docs/**"
- "design/**"
- "**/*.md"
pull_request:
branches: [main]
paths-ignore: *non_code_paths
schedule:
# Weekly drift check, offset from the other security workflows.
- cron: "40 7 * * 1"
permissions:
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
# Upload results to the code-scanning dashboard.
security-events: write
strategy:
fail-fast: false
matrix:
language: [javascript-typescript, rust]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v4
with:
languages: ${{ matrix.language }}
# JS/TS needs no build; Rust autobuild runs `cargo build`.
- name: Autobuild
uses: github/codeql-action/autobuild@5595ccaf912efad79be6eef63a5619ff05969be3 # v4
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v4
with:
category: "/language:${{ matrix.language }}"