This repository was archived by the owner on Oct 1, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (62 loc) · 2.26 KB
/
Copy pathcodeql.yml
File metadata and controls
67 lines (62 loc) · 2.26 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
65
66
67
name: CodeQL
on:
push:
branches: [main]
pull_request:
schedule:
- cron: "23 4 * * 1"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
# Branch protection on main requires the status context
# "Analyze (javascript-typescript, actions)" under this exact name, so the
# combined analysis stays a single job with its historical name. Splitting it
# into a per-language matrix renames every check and blocks every pull
# request. Change the required context in branch protection before renaming
# this job. The emitted names are guarded by
# tests/platform-contract.test.ts against
# .github/required-status-checks.txt.
analyze:
name: Analyze (javascript-typescript, actions)
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize CodeQL
uses: github/codeql-action/init@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4
with:
languages: javascript-typescript, actions
build-mode: none
config-file: .github/codeql/codeql-config.yml
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4
with:
category: "/language:javascript-typescript,actions"
# Rust is a second language in this repository, analysed separately so the
# required combined context above is never renamed.
analyze-rust:
name: Analyze (rust)
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize CodeQL
uses: github/codeql-action/init@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4
with:
languages: rust
build-mode: none
config-file: .github/codeql/codeql-config.yml
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4
with:
category: "/language:rust"