Skip to content

Commit b3e29ca

Browse files
fix: add CodeQL security scanning workflow
Adds CodeQL workflow for static analysis security scanning. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
1 parent be85186 commit b3e29ca

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# SPDX-License-Identifier: MPL-2.0
2+
name: CodeQL
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
schedule:
10+
- cron: '0 0 * * 0'
11+
12+
permissions:
13+
actions: read
14+
contents: read
15+
security-events: write
16+
17+
jobs:
18+
analyze:
19+
name: CodeQL Analysis
20+
runs-on: ubuntu-latest
21+
permissions:
22+
actions: read
23+
contents: read
24+
security-events: write
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
include:
29+
- language: actions
30+
build-mode: none
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
34+
35+
- name: Initialize CodeQL
36+
uses: github/codeql-action/init@29b1f65c1f735799893313399435a59f54045865 # v3
37+
with:
38+
languages: ${{ matrix.language }}
39+
build-mode: ${{ matrix.build-mode }}
40+
41+
- name: Autobuild
42+
uses: github/codeql-action/autobuild@29b1f65c1f735799893313399435a59f54045865 # v3
43+
44+
- name: Perform CodeQL Analysis
45+
uses: github/codeql-action/analyze@29b1f65c1f735799893313399435a59f54045865 # v3

0 commit comments

Comments
 (0)