Skip to content

Commit 7905ac2

Browse files
karhamaArekBalysNordic
authored andcommitted
ci: add codeql action
Adding codeql for github actions similar to sdk-nrf. Signed-off-by: Kari Hamalainen <kari.hamalainen@nordicsemi.no>
1 parent a964c48 commit 7905ac2

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
paths:
2+
- .github

.github/workflows/codeql.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- v*-branch
8+
pull_request:
9+
branches:
10+
- main
11+
- v*-branch
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
analyze:
18+
name: CodeQL (Github actions)
19+
runs-on: ubuntu-24.04
20+
permissions:
21+
security-events: write
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
25+
26+
- name: Initialize CodeQL
27+
uses: github/codeql-action/init@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1
28+
with:
29+
languages: actions
30+
build-mode: none
31+
queries: security-extended
32+
config-file: ./.github/codeql/codeql-actions-config.yml
33+
34+
- name: Perform CodeQL Analysis
35+
uses: github/codeql-action/analyze@f1f6e5f6af878fb37288ce1c627459e94dbf7d01 # v3.30.1
36+
with:
37+
category: "/language:actions"

0 commit comments

Comments
 (0)