feat(ci): harden CI with linters, security audit, and smart filtering#61
Merged
feat(ci): harden CI with linters, security audit, and smart filtering#61
Conversation
… concurrency Assimilate proven CI patterns from loombrain: - Cancel superseded PR runs (save CI minutes on force-pushes) - Run tests/typecheck on affected packages only for PRs (Turbo filter) - Lockfile integrity check (catches bun.lock drift) - Security audit via OSV Scanner (non-blocking vuln detection) - Separate turbo cache keys per job to avoid cache thrashing
- Add actions-lint job (actionlint for syntax, zizmor for security) - Add top-level `permissions: contents: read` to CI (least privilege) - Add `persist-credentials: false` to all checkout steps - Add `environment: cloudflare` to deploy-web (secrets gate) - Add .zizmor.yml to suppress design-choice findings (tag pinning, workflow_run trigger, cache-poisoning)
rhysd/actionlint has no v1 tag — use v1.7.12. zizmor-action moved to zizmorcore org — use zizmorcore/zizmor-action@v0.5.2.
|
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. |
The action uploads SARIF to Code Scanning but wasn't using our config file, so suppressed rules (unpinned-uses, etc.) were still reported.
Override transitive deps to patched versions: - brace-expansion >=2.0.3 (GHSA-f886-m6hf-6m8v) - fast-xml-parser >=5.5.6 (GHSA-8gc5-j5rx-235r) - picomatch >=2.3.2 (GHSA-3v7f-55p6-f55p) - smol-toml >=1.6.1 (GHSA-v3rj-xjv7-4jmq) - undici >=6.24.0 (GHSA-2mjp-6q6p-2qxm and 4 others) - yaml >=2.8.3 (GHSA-48c2-rrv3-qjmp) Remove continue-on-error from security audit — vulns now block CI.
undici >=6.24.0 resolved to 8.0.0 which removed internal module paths that jsdom relies on (undici/lib/handler/wrap-handler.js). Cap at ^7.24.0 to stay within the 7.x range that jsdom supports while patching all CVEs.
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.
Summary
Comprehensive CI/CD improvements assimilated from loombrain patterns and zizmor security audit findings.
Release pipeline fixes (follow-up to #56, #57, #58, #60)
peter-evans/create-pull-request@v8instead of direct push (branch protection)--provenanceonnpm publish— explicit OIDC flagregistry-urlonsetup-node— configures OIDC auth exchangeNew CI jobs
bun.lockdrift frompackage.jsonbun.lock(non-blocking)CI improvements
--filteron PRs, full suite on mainSecurity hardening
permissions: contents: read(least privilege) on CI workflowpersist-credentials: falseon all checkout stepsenvironment: cloudflareon deploy-web (secrets gate).zizmor.ymlconfig for design-choice suppressionsAction upgrades (Node.js 20 → 24)
actions/checkoutactions/setup-nodeactions/cachepeter-evans/create-pull-requestTest plan
cloudflareenvironment in GitHub repo settings