-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (65 loc) · 2.01 KB
/
Copy pathcodeql.yml
File metadata and controls
75 lines (65 loc) · 2.01 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Weekly scan, Monday 08:00 ET (12:00 UTC standard / 13:00 UTC EDT)
- cron: "0 13 * * 1"
# Cancel in-progress runs for the same branch when a new commit is pushed
concurrency:
group: codeql-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
# CodeQL-supported languages relevant to this template.
# Remove entries that don't apply to the project.
# Supported values: actions, c-cpp, csharp, go, java-kotlin,
# javascript-typescript, python, ruby, rust, swift
language:
- javascript-typescript
- python
- rust
- actions
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# 'security-extended' enables more queries than the default
# at the cost of longer runtime. Drop to 'default' if scan time
# becomes problematic.
queries: security-extended
config: |
paths-ignore:
- '**/node_modules/**'
- '**/dist/**'
- '**/build/**'
- '**/target/**'
- '**/.venv/**'
- '**/venv/**'
- '**/__pycache__/**'
- '**/generated/**'
- '**/*.generated.*'
- '**/vendor/**'
- '**/third_party/**'
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"