-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (47 loc) · 1.36 KB
/
codeql.yml
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
50
51
52
53
54
55
56
name: 'CodeQL'
on:
push:
branches: ['master']
pull_request:
# The branches below must be a subset of the branches above
branches: ['master']
schedule:
- cron: '30 12 * * 5'
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: Analyze
runs-on: 'ubuntu-latest'
strategy:
fail-fast: false
matrix:
language: ['javascript']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: signavio/codeql-action/init@v2
with:
queries: security-extended
# run an 'alert-suppression' query
packs: 'codeql/${{ matrix.language }}-queries:AlertSuppression.ql'
languages: ${{ matrix.language }}
- name: auto-build
uses: signavio/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
id: analyze
uses: signavio/codeql-action/analyze@v2
with:
category: '/language:${{matrix.language}}'
output: sarif-results
- name: Dismiss alerts
if: github.ref == 'refs/heads/main'
uses: advanced-security/dismiss-alerts@v1
with:
sarif-id: ${{ steps.analyze.outputs.sarif-id }}
sarif-file: sarif-results/${{ matrix.language }}.sarif
env:
GITHUB_TOKEN: ${{ github.token }}