-
-
Notifications
You must be signed in to change notification settings - Fork 70
42 lines (36 loc) · 1.08 KB
/
CodeQL.yml
File metadata and controls
42 lines (36 loc) · 1.08 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
name: "CodeQL"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
# Run CodeQL analysis on a schedule (e.g., every Monday at 3:00 AM)
- cron: '0 3 * * 1'
jobs:
analyze:
name: Analyze
# Use a Rust-supported runner, e.g., 'ubuntu-latest'
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
persist-credentials: false
# Initializes the CodeQL Action and creates a database for Rust
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: rust
# CodeQL for Rust does not require an explicit build command
# - name: Build (optional, only if needed for specific dependencies)
# run: cargo build --release
# Performs the CodeQL analysis and uploads the results
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:rust"