From 3d6000d3367dfd55d6e8403b5b7f79c4659efcbc Mon Sep 17 00:00:00 2001 From: ThePrismSystem <10910959+ThePrismSystem@users.noreply.github.com> Date: Thu, 6 Aug 2026 11:03:06 -0500 Subject: [PATCH] ci: analyze with CodeQL on push, pull request and weekly Code scanning is free on public repositories and was unavailable while this one was private - adding the workflow earlier would have turned CI red on every run, since the upload step 403s without Advanced Security. build-mode none is the supported mode for TypeScript; the security-and-quality pack is the broader of the two default suites. --- .github/workflows/codeql.yml | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..3b72070 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,37 @@ +name: CodeQL + +on: + push: + branches: [main] + pull_request: + branches: [main] + schedule: + - cron: "23 5 * * 1" + +permissions: + contents: read + +concurrency: + group: codeql-${{ github.ref }} + cancel-in-progress: true + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + security-events: write + actions: read + contents: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Initialize CodeQL + uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6 + with: + languages: javascript-typescript + build-mode: none + queries: security-and-quality + + - name: Analyze + uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6