Skip to content

Commit 9637022

Browse files
authored
Add initial CodeQL workflow configuration (#363)
1 parent 7fb29c5 commit 9637022

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/codeql.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "CodeQL"
2+
3+
on:
4+
schedule:
5+
- cron: '0 13 * * 1' # At 1:00 PM UTC every Monday
6+
pull_request:
7+
paths:
8+
- '.github/workflows/codeql.yaml'
9+
10+
jobs:
11+
analyze:
12+
name: Analyze
13+
runs-on: ubuntu-latest
14+
permissions:
15+
actions: read
16+
contents: read
17+
security-events: write
18+
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
language: [ 'javascript' ]
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
28+
- name: Initialize the CodeQL tools for scanning
29+
uses: github/codeql-action/init@v3
30+
with:
31+
languages: ${{ matrix.language }}
32+
timeout-minutes: 5
33+
34+
- name: Autobuild
35+
uses: github/codeql-action/autobuild@v3
36+
timeout-minutes: 10
37+
38+
- name: Perform CodeQL Analysis
39+
uses: github/codeql-action/analyze@v3
40+
with:
41+
category: "/language:${{matrix.language}}"
42+
timeout-minutes: 10

0 commit comments

Comments
 (0)