From 278b9675676fb6cf7875ac2df654b8744949cd30 Mon Sep 17 00:00:00 2001 From: neumattock <152253273+newmattock@users.noreply.github.com> Date: Wed, 27 May 2026 22:13:13 -0700 Subject: [PATCH 1/2] Add CodeQL security analysis --- .github/workflows/codeql.yml | 31 +++++++++++++++++++++++++++++++ SECURITY.md | 6 ++++++ 2 files 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..8991fcb --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,31 @@ +name: CodeQL Security Analysis + +on: + push: + branches: [main] + pull_request: + +permissions: + actions: read + contents: read + security-events: write + +jobs: + analyze: + name: Analyze JavaScript and TypeScript + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: javascript-typescript + build-mode: none + + - name: Perform CodeQL analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:javascript-typescript" diff --git a/SECURITY.md b/SECURITY.md index bbe6e57..a1144e3 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -32,3 +32,9 @@ Once a report is received through the GitHub Security Advisory form, we commit t ## GitHub Security Advisories Maintainers: Please ensure that **GitHub Security Advisories** are enabled for this repository to allow researchers to submit reports privately. + +## Static Security Analysis + +This repository runs CodeQL security analysis for the JavaScript and TypeScript codebase on every pull request and every push to `main`. + +CodeQL uploads results to the GitHub Security tab. Maintainers should review new alerts before merging security-sensitive changes, prioritize any high or critical findings, and keep the baseline scan free of high or critical alerts. From 9a67578fc866842a4b4cad2b429b2bc8030ed909 Mon Sep 17 00:00:00 2001 From: neumattock <152253273+newmattock@users.noreply.github.com> Date: Wed, 27 May 2026 22:50:32 -0700 Subject: [PATCH 2/2] Harden CodeQL checkout credentials --- .github/workflows/codeql.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 8991fcb..10fd33a 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -18,6 +18,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + persist-credentials: false - name: Initialize CodeQL uses: github/codeql-action/init@v3