Skip to content

Commit 634891c

Browse files
ci: add CodeQL (JS/TS, excludes PHP) with workflow_dispatch
1 parent d56c40c commit 634891c

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [main, master, develop]
6+
paths-ignore:
7+
- "**/*.php"
8+
- "**/*.md"
9+
pull_request:
10+
branches: [main, master, develop]
11+
paths-ignore:
12+
- "**/*.php"
13+
- "**/*.md"
14+
schedule:
15+
- cron: "30 1 * * 1"
16+
workflow_dispatch:
17+
18+
concurrency:
19+
group: codeql-${{ github.ref }}
20+
cancel-in-progress: true
21+
22+
jobs:
23+
analyze:
24+
name: Analyze
25+
runs-on: ubuntu-latest
26+
timeout-minutes: 15
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
language: ["javascript-typescript"]
35+
steps:
36+
- name: Checkout repository
37+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
38+
- name: Initialize CodeQL
39+
uses: github/codeql-action/init@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3
40+
with:
41+
languages: ${{ matrix.language }}
42+
- name: Autobuild
43+
uses: github/codeql-action/autobuild@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3
44+
- name: Perform CodeQL Analysis
45+
uses: github/codeql-action/analyze@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3
46+
with:
47+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)