Repository navigation
44 lines (41 loc) · 1.45 KB
/
Copy pathcodeql.yml
File metadata and controls
44 lines (41 loc) · 1.45 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
# CodeQL for Rust. DORMANT by default.
#
# Measured 2026-10-08: GitHub Code Security is disabled on cerebral-work private
# repositories (`security_and_analysis.code_security.status = disabled`; the
# code-scanning API returns 403 "Code Security must be enabled"). Without it,
# the SARIF upload fails, and CodeQL's licence does not cover private code.
# Enabling Code Security is a paid enterprise setting: the operator's decision.
#
# To turn this on after Code Security is enabled: set the repository variable
# CODE_SCANNING=true. It is NOT a required check (specs/0005).
name: codeql
on:
pull_request:
push:
branches: [development, main]
schedule:
- cron: "17 6 * * 1" # weekly, Monday 06:17 UTC
workflow_dispatch:
permissions:
contents: read
jobs:
analyze:
name: codeql
if: >-
vars.CODE_SCANNING == 'true' &&
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: read
actions: read
security-events: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: github/codeql-action/init@24c54180a607b1449ed407dd24f251e4e9147c8d # v4
with:
languages: rust
build-mode: none
- uses: github/codeql-action/analyze@24c54180a607b1449ed407dd24f251e4e9147c8d # v4
with:
category: /language:rust