-
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (56 loc) · 2.13 KB
/
Copy pathcodeql.yml
File metadata and controls
63 lines (56 loc) · 2.13 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
# SPDX-License-Identifier: MPL-2.0
name: CodeQL Security Analysis
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
schedule:
# Estate cut 3 (standards#233): weekly → monthly. 1st of each month
# at 06:00 UTC. Owner-decision Option B (2026-05-30): ~85% savings
# (~46k Actions-min/yr) with bounded 30-day CVE-detection floor.
# PR-trigger runs (push + pull_request) are kept regardless — this
# cut only changes the scheduled-baseline cadence.
- cron: '0 6 1 * *'
# Estate guardrail: serialise superseded runs so re-pushes / rebased PR
# updates do not pile up against the shared account-wide Actions pool.
#
# cancel-in-progress is DELIBERATELY false: CodeQL is a REQUIRED
# code-scanning tool in the estate branch rulesets (a result must upload
# for the head commit before a PR can merge). A cancelled run uploads
# nothing, leaving branch protection stuck "expecting 1 result from CodeQL
# for <sha>" indefinitely — the ghost check that blocks PRs for hours/days.
# Queue rather than cancel so the latest commit's scan always completes and
# uploads. (Non-required read-only workflows may still cancel-in-progress.)
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
permissions:
contents: read
jobs:
analyze:
timeout-minutes: 20
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
- language: actions
build-mode: none
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Initialize CodeQL
uses: github/codeql-action/init@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v3
with:
category: "/language:${{ matrix.language }}"