Skip to content

Commit 75287b4

Browse files
fiveonefour-github-botclaudecallicles
committed
ci: add CodeQL advanced setup workflow
Replaces GitHub's default CodeQL setup with an explicit workflow file, so the analysis runs as a normal Actions check on pull requests. Default setup runs are not backed by a workflow in the repository, which means fork PRs produce a CodeQL result that maintainers cannot approve or gate on. Committing the workflow makes the run approvable for fork PRs and lets "Analyze (javascript-typescript)" be marked as a required check. Matches the repo's existing pinned action majors (actions/checkout@v6) and uses build-mode: none, which is the correct mode for JavaScript/TypeScript since CodeQL extracts the source without a compilation step. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Co-authored-by: Nicolas Joseph <nicolas@fiveonefour.com>
1 parent 637c152 commit 75287b4

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
- cron: "17 4 * * 1"
10+
11+
jobs:
12+
analyze:
13+
name: Analyze (${{ matrix.language }})
14+
runs-on: ubuntu-latest
15+
permissions:
16+
security-events: write
17+
packages: read
18+
actions: read
19+
contents: read
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: [javascript-typescript]
25+
build-mode: [none]
26+
27+
steps:
28+
- uses: actions/checkout@v6
29+
30+
- name: Initialize CodeQL
31+
uses: github/codeql-action/init@v4
32+
with:
33+
languages: ${{ matrix.language }}
34+
build-mode: ${{ matrix.build-mode }}
35+
36+
- name: Perform CodeQL Analysis
37+
uses: github/codeql-action/analyze@v4
38+
with:
39+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)