Skip to content

Commit bf999d2

Browse files
committed
Add CodeQL security analysis workflow
1 parent 2b70505 commit bf999d2

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: "CodeQL Sec Analysis"
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
schedule:
7+
- cron: '0 2 * * 1' # Weekly on Monday at 2 AM
8+
9+
jobs:
10+
analyze:
11+
name: Analyze (${ matrix.language })
12+
13+
permissions:
14+
# required for all workflows
15+
security-events: write
16+
17+
# required to fetch internal or private CodeQL packs
18+
packages: read
19+
20+
# only required for workflows in private repositories
21+
actions: read
22+
contents: read
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
include:
28+
- language: javascript-typescript
29+
build-mode: none
30+
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v4
34+
35+
# Initializes the CodeQL tools for scanning.
36+
- name: Initialize CodeQL
37+
uses: github/codeql-action/init@v3
38+
with:
39+
languages: ${ matrix.language }
40+
build-mode: ${ matrix.build-mode }

0 commit comments

Comments
 (0)