-
-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (47 loc) · 1.56 KB
/
Copy pathcodeql.yml
File metadata and controls
55 lines (47 loc) · 1.56 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
name: CodeQL
# Local CodeQL workflow that pins our custom config (path exclusions
# for test/example/bench/fuzz fixtures). The reusable
# `security.yml@main` workflow also runs CodeQL but doesn't yet accept
# a `config-file` input — when that lands upstream this file can be
# retired in favour of a single shared invocation.
on:
push:
branches: [main, feat/**]
pull_request:
schedule:
# Weekly Monday 04:00 UTC — catches advisory-db / query updates.
- cron: "0 4 * * 1"
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
analyze:
name: CodeQL Analysis
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
security-events: write
contents: read
actions: read
strategy:
fail-fast: false
matrix:
language: [rust, actions]
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
fetch-depth: 1
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@458d36d7d4f47d0dd16ca424c1d3cda0060f1360 # v3.35.5
with:
languages: ${{ matrix.language }}
config-file: .github/codeql/codeql-config.yml
- name: Autobuild
uses: github/codeql-action/autobuild@458d36d7d4f47d0dd16ca424c1d3cda0060f1360 # v3.35.5
- name: Perform analysis
uses: github/codeql-action/analyze@458d36d7d4f47d0dd16ca424c1d3cda0060f1360 # v3.35.5
with:
category: "/language:${{ matrix.language }}"