forked from no42-org/onmsctl
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (50 loc) · 1.77 KB
/
Copy pathcodeql.yml
File metadata and controls
56 lines (50 loc) · 1.77 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
# CodeQL analysis. Two languages are in scope for this repo:
# rust — the workspace itself
# actions — the workflow files, which handle a GHCR push token and
# sign releases, so they are worth analysing as code
#
# Neither needs a build: CodeQL's Rust and Actions extractors run in
# `build-mode: none`, reading the source directly.
name: codeql
on:
push:
branches: [main]
pull_request:
schedule:
# Tuesdays 04:00 UTC. Offset from the Monday cargo-deny cron in
# verify.yml so a bad week doesn't land as one indistinguishable pile
# of failures.
- cron: '0 4 * * 2'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
analyze:
name: analyze (${{ matrix.language }})
# Skip scheduled runs on forks — only the upstream repo's cron should fire.
if: github.event_name != 'schedule' || github.repository == 'no42-org/onmsctl'
runs-on: ubuntu-24.04
permissions:
contents: read
security-events: write # upload SARIF to the Security tab
strategy:
fail-fast: false
matrix:
language: [rust, actions]
timeout-minutes: 60
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
with:
languages: ${{ matrix.language }}
build-mode: none
queries: security-and-quality
- name: Analyze
uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
with:
category: /language:${{ matrix.language }}