Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CodeQL

on:
push:
branches: ["feat/phase-3-polish-sharing-deployment"]
pull_request:
branches: ["feat/phase-3-polish-sharing-deployment"]
Comment on lines +4 to +7
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Point CodeQL triggers at the default branch

The workflow is being added on top of main, but both event filters target feat/phase-3-polish-sharing-deployment. Since pull_request.branches matches the base branch and push.branches matches the pushed branch, PRs targeting main and pushes to main will not run CodeQL; only manual dispatch and the weekly scheduled scan remain. This leaves the intended per-PR/default-branch code scanning coverage absent unless contributors open PRs against that feature branch.

Useful? React with 👍 / 👎.

workflow_dispatch:
schedule:
- cron: "24 11 * * 1"

permissions:
contents: read
security-events: write

jobs:
analyze:
name: Analyze JavaScript and TypeScript
runs-on: ubuntu-latest
timeout-minutes: 20

steps:
- name: Checkout repository
uses: actions/checkout@v6

- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: javascript-typescript

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4