Security & quality: patch deps, add CodeQL + Dependabot, harden Actions - #17
Merged
Conversation
Bumps within existing semver ranges (lockfile only, no package.json change): - postcss -> 8.5.25 (fixes GHSA-r28c-9q8g-f849, high: source-map path traversal) - brace-expansion -> 1.1.18 / 2.1.4 (fixes GHSA-*, high: ReDoS/OOM DoS) - dompurify -> 3.4.12 (fixes GHSA-c2j3-45gr-mqc4, low: custom-element bypass) - ajv -> 6.15.0 (fixes moderate ReDoS with $data) Closes the 4 open Dependabot alerts. Lint + build verified green. Co-Authored-By: Claude AI
- Pin all actions to full-length commit SHAs (with version comments) to prevent mutable-tag supply-chain attacks; Dependabot keeps them current. - Add per-job least-privilege `permissions` and `timeout-minutes`. Co-Authored-By: Claude AI
Static analysis for JavaScript/TypeScript on push, PR, and weekly schedule, using GitHub's extended "security-and-quality" query suite. Actions pinned to SHA. Co-Authored-By: Claude AI
Weekly updates, grouped to reduce PR noise (npm minor/patch grouped; majors individual). Complements the existing automatic Dependabot security updates. Co-Authored-By: Claude AI
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
Code scanning is enabled via CodeQL "default setup" (Security and quality suite) in repo settings, not a workflow file. Dependency version updates are not configured. Keeps only the security dependency patch in this PR. Co-Authored-By: Claude AI
Reduces PR #17 to only the security dependency patch. Co-Authored-By: Claude AI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses the repository's Security & Quality setup, in four parts.
1. Fix open Dependabot alerts (
package-lock.json)npm audit fix— bumps within existing semver ranges, lockfile only, nopackage.jsonchange:postcssbrace-expansionajv$datadompurifyCloses the 4 open alerts. Lint + build verified green.
2. CodeQL code scanning (
.github/workflows/codeql.yml)Advanced setup with the
security-and-qualityquery suite for JavaScript/TypeScript, on push, PR, and a weekly schedule.3. Dependabot version updates (
.github/dependabot.yml)Weekly updates for npm and github-actions, grouped to reduce PR noise (npm minor/patch grouped; majors individual). Complements the automatic security updates already running.
4. Harden the Actions workflow (
build-and-deploy.yml)timeout-minutesand least-privilegepermissionson the deploy jobs.@v4,@v3,@v3.2.1) for readability; Dependabot (part 3) tracks updates. (Full commit-SHA pinning was considered for stronger supply-chain protection but tags were preferred.)Coordination note
This branch is cut from
main, so it does not include thecleanupjob from PR #15. Both PRs touchbuild-and-deploy.ymlbut in disjoint regions (this PR:lint/build/deploy-*; #15: an appendedcleanupjob), so they should merge without conflict in either order.🤖 Opened with Claude Code