Skip to content
This repository was archived by the owner on Mar 21, 2026. It is now read-only.

Commit db931fc

Browse files
authored
Update CodeQL workflow for security analysis
1 parent dfb3fbe commit db931fc

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: CodeQL Security Analysis For Github Actions
3+
4+
on:
5+
push:
6+
branches: ["main"]
7+
workflow_dispatch:
8+
# pull_request:
9+
10+
jobs:
11+
codeql:
12+
name: CodeQL Analysis
13+
uses: huggingface/security-workflows/.github/workflows/codeql-reusable.yml@v1.2.0
14+
permissions:
15+
security-events: write
16+
packages: read
17+
actions: read
18+
contents: read
19+
with:
20+
languages: '["actions"]'
21+
queries: 'security-extended,security-and-quality'
22+
runner: 'ubuntu-latest' #optional if need custom runner
23+
use-runner-group: false #optional
24+
25+
# if need to use runner group:
26+
# runner: 'cpu-low'
27+
# use-runner-group: true

0 commit comments

Comments
 (0)