Skip to content

Commit 00e81b9

Browse files
workflow: adding codeql analysis (#12)
2 parents 9471d67 + f87b080 commit 00e81b9

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/codeql.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# SPDX-FileCopyrightText: 2024 Ledger SAS
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: "CodeQL"
6+
7+
on:
8+
workflow_call:
9+
10+
jobs:
11+
analyze:
12+
name: Analyze python
13+
runs-on: 'ubuntu-latest'
14+
timeout-minutes: 360
15+
permissions:
16+
# required for all workflows
17+
security-events: write
18+
19+
# required to fetch internal or private CodeQL packs
20+
packages: read
21+
22+
# only required for workflows in private repositories
23+
actions: read
24+
contents: read
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
30+
# Initializes the CodeQL tools for scanning.
31+
- name: Initialize CodeQL
32+
uses: github/codeql-action/init@v3
33+
with:
34+
languages: python
35+
build-mode: none
36+
- name: Perform CodeQL Analysis
37+
uses: github/codeql-action/analyze@v3
38+
with:
39+
category: "/language:python"
40+

0 commit comments

Comments
 (0)