-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.2 KB
/
Copy pathcodeql.yml
File metadata and controls
49 lines (40 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CodeQL
# CodeQL is not deprecated. Uploading results to GitHub's Security tab requires
# code scanning, which is only available for public repos (or private repos
# with GitHub Code Security on Team/Enterprise). This repo is private on Free,
# so we analyze locally and upload SARIF as a workflow artifact instead.
# To use the Security tab: make the repo public, then set upload: true below.
on:
push:
branches: [main, master]
pull_request:
schedule:
- cron: '0 6 * * 1'
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: npm
- run: npm ci
- uses: github/codeql-action/init@v4
with:
languages: javascript-typescript
- run: npm run build
- uses: github/codeql-action/analyze@v4
with:
upload: false
output: codeql-results
- uses: actions/upload-artifact@v7
if: always()
with:
name: codeql-sarif
path: codeql-results/*.sarif
retention-days: 14
if-no-files-found: ignore