-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (32 loc) · 946 Bytes
/
Copy pathcodeql.yml
File metadata and controls
37 lines (32 loc) · 946 Bytes
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
# CodeQL code scanning (advanced setup). Authored as a workflow rather than the
# repo "default setup" because the latter requires the security_events API scope.
# Rust is analyzed with build-mode `none` (CodeQL builds the database from source,
# no cargo compile needed).
name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 7 * * 1" # weekly, Monday 07:00 UTC
jobs:
analyze:
name: Analyze (Rust)
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Initialize CodeQL
uses: github/codeql-action/init@v4.37.3
with:
languages: rust
build-mode: none
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v4.37.3
with:
category: "/language:rust"