Skip to content

Commit f079324

Browse files
ci(codeql): also scan develop branch on push and PR (#4086)
Previously only master was scanned via the default CodeQL setup. Since development happens on develop, this PR replaces the default setup with a custom workflow that covers both branches. This gives an overview of the security status across the current release (master) and the development branch (develop). As a result we should also see issues in the develop branch here: https://github.com/MagicMirrorOrg/MagicMirror/security/code-scanning
1 parent 512e746 commit f079324

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/codeql.yaml

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: [develop, master]
6+
pull_request:
7+
branches: [develop]
8+
schedule:
9+
- cron: "0 4 * * 1"
10+
11+
jobs:
12+
analyze:
13+
name: Analyze (${{ matrix.language }})
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
language: [actions, javascript-typescript]
24+
25+
steps:
26+
- uses: actions/checkout@v6
27+
28+
- uses: github/codeql-action/init@v4
29+
with:
30+
languages: ${{ matrix.language }}
31+
queries: security-and-quality
32+
33+
- uses: github/codeql-action/autobuild@v4
34+
35+
- uses: github/codeql-action/analyze@v4
36+
with:
37+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)