forked from yfedoseev/browser_oxide
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.27 KB
/
Copy pathcodeql.yml
File metadata and controls
42 lines (39 loc) · 1.27 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 SAST
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 2 * * 3" # weekly, Wed 02:00 UTC
permissions:
contents: read
jobs:
analyze:
name: CodeQL analysis
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write # upload SARIF
actions: read
strategy:
fail-fast: false
matrix:
language: [rust]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
- name: Initialize CodeQL
uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v3
with:
languages: ${{ matrix.language }}
queries: security-extended
config-file: ./.github/codeql/codeql-config.yml
- name: Install skia system deps (freetype + fontconfig)
run: sudo apt-get update && sudo apt-get install -y libfontconfig1-dev libfreetype6-dev
- name: Build for CodeQL
run: cargo build --workspace
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v3
with:
category: "/language:${{ matrix.language }}"