Skip to content

Commit 66a7359

Browse files
authored
ci: migrate CodeQL to advanced setup (#35)
Disables default-setup, adds advanced workflow with paths-ignore for generated proto stubs (sdk/src/opendecree/_generated/**). Closes #23 Closes #21
1 parent ed6d92a commit 66a7359

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# CodeQL advanced setup. Replaces default-setup once disabled in repo settings.
2+
# Advanced unlocks paths-ignore (skip generated proto stubs) and workflow pinning.
3+
name: CodeQL
4+
5+
on:
6+
pull_request:
7+
branches: [main]
8+
paths-ignore:
9+
- "sdk/src/opendecree/_generated/**"
10+
- "**/*.md"
11+
push:
12+
branches: [main]
13+
schedule:
14+
- cron: "33 7 * * 1"
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
18+
cancel-in-progress: true
19+
20+
permissions:
21+
contents: read
22+
23+
jobs:
24+
analyze:
25+
name: Analyze (${{ matrix.language }})
26+
runs-on: ubuntu-latest
27+
timeout-minutes: 15
28+
permissions:
29+
security-events: write
30+
packages: read
31+
actions: read
32+
contents: read
33+
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
include:
38+
- language: actions
39+
build-mode: none
40+
- language: python
41+
build-mode: none
42+
43+
steps:
44+
- name: Checkout
45+
uses: actions/checkout@v6
46+
with:
47+
persist-credentials: false
48+
49+
- name: Initialize CodeQL
50+
uses: github/codeql-action/init@v3
51+
with:
52+
languages: ${{ matrix.language }}
53+
build-mode: ${{ matrix.build-mode }}
54+
config: |
55+
paths-ignore:
56+
- sdk/src/opendecree/_generated/**
57+
58+
- name: Analyze
59+
uses: github/codeql-action/analyze@v3
60+
with:
61+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)