-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (53 loc) · 2.12 KB
/
Copy pathcodeql.yml
File metadata and controls
58 lines (53 loc) · 2.12 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
# SPDX-License-Identifier: MPL-2.0
name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 0 * * 0'
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: CodeQL Analysis (${{ matrix.language }})
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
include:
# `actions` scans the workflows themselves.
- language: actions
build-mode: none
# `rust` is the point of this repository. It was never scanned before:
# the matrix listed `actions` only, so CodeQL had never once opened
# crates/. Rust is public preview from CodeQL 2.22.1; the bundle
# carried by codeql-action v4.38.1 is newer, so no experimental
# feature flag is needed. build-mode is deliberately omitted — the
# upstream Rust check (pr-checks/checks/rust.yml) passes only
# `languages: rust`, and an empty input reads as unset.
- language: rust
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# Pinned to the COMMIT this tag dereferences to, not the tag object's own
# sha. The previous pin (29b1f65c…) resolved to nothing at all — GitHub
# returns 422 for it — which is why every CodeQL run died.
- name: Initialize CodeQL
uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0 (4.38.1 blocked estate-wide; nexia-list#100)
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# No Autobuild step: both matrix entries are buildless. Autobuild under
# build-mode `none` is a no-op, and upstream's Rust check omits it.
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0 (4.38.1 blocked estate-wide; nexia-list#100)
with:
category: "/language:${{ matrix.language }}"