-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (50 loc) · 1.5 KB
/
reusable-codeql.yaml
File metadata and controls
65 lines (50 loc) · 1.5 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
---
name: CodeQL
on:
schedule:
- cron: '30 0 * * *'
workflow_call:
workflow_dispatch:
permissions:
actions: read
contents: read
security-events: read
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
# https://aka.ms/codeql-docs/language-support
fail-fast: false
matrix:
language: ['actions', 'python']
python: ['3.14.x']
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: ${{ matrix.python }}
- name: Initialize CodeQL
uses: github/codeql-action/init@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 # v4.31.9
with:
languages: ${{ matrix.language }}
queries: security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 # v4.31.9
with:
output: codeql-results/
- name: Upload codeql-${{ matrix.language }}
id: upload-artifacts
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f #v6.0.0
with:
name: codeql-${{ matrix.language }}
path: codeql-results/
if-no-files-found: error
retention-days: 3
overwrite: true
compression-level: 6