-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.68 KB
/
Copy pathsecurity.yml
File metadata and controls
55 lines (45 loc) · 1.68 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
name: Security
# CodeQL over the application code and over the workflows themselves. The second matters here:
# a workflow that interpolates untrusted text into a shell line is a supply-chain problem that
# no amount of application testing would find.
on:
pull_request:
push:
branches: [master]
schedule:
# Weekly, so a newly published query finds an old file. Monday morning UTC.
- cron: '17 6 * * 1'
permissions:
contents: read
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
jobs:
codeql:
name: CodeQL (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
# Only this job writes, and only to the code-scanning API.
security-events: write
contents: read
actions: read
strategy:
fail-fast: false
matrix:
language: [javascript-typescript, actions]
steps:
- uses: actions/checkout@v7
- uses: github/codeql-action/init@v4
with:
language: ${{ matrix.language }}
# The default suite, not security-extended. Extended roughly doubles the run and, on a
# codebase this size, mostly produces findings that are triaged away — which trains
# everyone to skim the alerts. The decision is recorded in SECURITY.md so it can be
# revisited rather than rediscovered.
queries: security-and-quality
# The site builds with Turbopack and the Worker with tsc; CodeQL's own extractor reads the
# sources directly and needs neither, so there is no build step to keep in sync here.
- uses: github/codeql-action/analyze@v4
with:
category: /language:${{ matrix.language }}