From f07932442660769f15f275ee2ec0bce57771d260 Mon Sep 17 00:00:00 2001 From: Kristjan ESPERANTO <35647502+KristjanESPERANTO@users.noreply.github.com> Date: Sat, 4 Apr 2026 16:39:53 +0200 Subject: [PATCH] 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 --- .github/workflows/codeql.yaml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/codeql.yaml diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml new file mode 100644 index 00000000..3dab6915 --- /dev/null +++ b/.github/workflows/codeql.yaml @@ -0,0 +1,37 @@ +name: CodeQL + +on: + push: + branches: [develop, master] + pull_request: + branches: [develop] + schedule: + - cron: "0 4 * * 1" + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [actions, javascript-typescript] + + steps: + - uses: actions/checkout@v6 + + - uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + queries: security-and-quality + + - uses: github/codeql-action/autobuild@v4 + + - uses: github/codeql-action/analyze@v4 + with: + category: "/language:${{ matrix.language }}"