-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.15 KB
/
codeql.yml
File metadata and controls
43 lines (37 loc) · 1.15 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
name: codeql
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
schedule:
# Weekly scheduled scan picks up newly disclosed vulnerabilities
- cron: "27 4 * * 1"
jobs:
analyze:
name: analyze (${{ matrix.language }})
runs-on: ubuntu-latest
# Skip on private repos — Code Scanning needs GitHub Advanced Security
# to ingest the SARIF results, which isn't free for private repos.
# As soon as you switch visibility to Public this job kicks in.
if: github.event.repository.visibility == 'public'
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [python, javascript-typescript]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"