Repository navigation
49 lines (43 loc) · 1.48 KB
/
Copy pathcodeql.yml
File metadata and controls
49 lines (43 loc) · 1.48 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
# No paths filter: every push to main and every pull request is analysed, so
# no merged commit escapes SAST. The scheduled anchor commits carry [skip ci]
# and only touch registry/, proofs/ and staging/ data.
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 3 * * 1" # Weekly on Monday at 03:00 UTC
permissions:
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
# Dependabot PRs run with a read-only token; the weekly run covers them.
if: github.actor != 'dependabot[bot]'
permissions:
contents: read
actions: read
security-events: write
strategy:
fail-fast: false
matrix:
# actions: the workflows here hold the checkpoint signing secret and
# push to main, so workflow injection is in scope, not just Python.
language: [actions, python]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
with:
languages: ${{ matrix.language }}
build-mode: none
queries: security-extended
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
with:
category: /language:${{ matrix.language }}