Skip to content

Commit 03025d2

Browse files
committed
Add security workflow for CodeQL analysis and dependency audit
1 parent 554d6a1 commit 03025d2

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/security.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Security
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
actions: read
9+
contents: read
10+
security-events: write
11+
12+
jobs:
13+
codeql:
14+
name: CodeQL Analysis
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Initialize CodeQL
20+
uses: github/codeql-action/init@v3
21+
with:
22+
languages: actions
23+
24+
- name: Perform CodeQL Analysis
25+
uses: github/codeql-action/analyze@v3
26+
27+
cargo-audit:
28+
name: Dependency Audit
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: dtolnay/rust-toolchain@stable
33+
- name: Install cargo-audit
34+
run: cargo install cargo-audit
35+
- name: Run cargo audit
36+
run: cargo audit

0 commit comments

Comments
 (0)