Skip to content

Commit 0834297

Browse files
authored
Enable codeql pipeline (#461)
1 parent 19170bc commit 0834297

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/tox.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,43 @@ jobs:
4040
ee-arm64:tox -e ee:runner=ubuntu-24.04-arm64-2core
4141
secrets: inherit # needed for logging to the ghcr.io registry
4242

43+
codeql:
44+
name: codeql
45+
runs-on: ubuntu-latest
46+
permissions:
47+
actions: read
48+
contents: read
49+
security-events: write
50+
51+
strategy:
52+
fail-fast: false
53+
matrix:
54+
language: ["python"]
55+
56+
steps:
57+
- name: Checkout repository
58+
uses: actions/checkout@v4
59+
60+
# Initializes the CodeQL tools for scanning.
61+
- name: Initialize CodeQL
62+
uses: github/codeql-action/init@v3
63+
with:
64+
languages: ${{ matrix.language }}
65+
# If you wish to specify custom queries, you can do so here or in a config file.
66+
# By default, queries listed here will override any specified in a config file.
67+
# Prefix the list here with "+" to use these queries and those in the config file.
68+
69+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
70+
# queries: security-extended,security-and-quality
71+
72+
- name: Autobuild
73+
uses: github/codeql-action/autobuild@v3
74+
75+
- name: Perform CodeQL Analysis
76+
uses: github/codeql-action/analyze@v3
77+
with:
78+
category: "/language:${{matrix.language}}"
79+
4380
publish-ee:
4481
# environment: release # approval
4582
runs-on: ubuntu-24.04
@@ -59,6 +96,7 @@ jobs:
5996
publish-devspaces:
6097
runs-on: ubuntu-24.04
6198
needs:
99+
- codeql
62100
- tox
63101
if: github.ref == 'refs/heads/main' || (github.event_name == 'release' && github.event.action == 'published')
64102
steps:
@@ -78,6 +116,7 @@ jobs:
78116
79117
publish-wheel:
80118
needs:
119+
- codeql
81120
- tox
82121
if: github.event_name == 'release' && github.event.action == 'published'
83122
environment: release # approval

0 commit comments

Comments
 (0)