Skip to content

fix(ci): make the Svalin dependency gate Bun-first - #81

Open
hyperpolymath wants to merge 1 commit into
mainfrom
fix/gate-bun-first
Open

hyperpolymath wants to merge 1 commit into
mainfrom
fix/gate-bun-first

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

The Svalin dependency gate rejected package.json and pnpm-lock.yaml. The owner chose to update repo-local gates to the canonical language policy. That policy bans only Node.js and yarn, uses Bun > Deno > pnpm as fallbacks, and requires package.json plus bun.lock for JS deps.

Changes to .github/workflows/svalin-scan.yml:

  • package.json is allowed when bun.lock is present.
  • pnpm-lock.yaml is allowed.
  • package-lock.json, npm-shrinkwrap.json, yarn.lock and yarn config files are still rejected.
  • .nvmrc and .node-version are now rejected as Node-only pins.

This unblocks the sweep PR #80, which adds package.json, bun.lock and pnpm-lock.yaml.

Separate finding: Prettier cannot parse .screenshots/capture-screenshots.js (it uses a URL import). That path is added to .prettierignore on the #80 branch in its own commit.



Generated by Claude Code

The gate rejected package.json and pnpm-lock.yaml. The canonical
language policy bans only Node.js and yarn, with Bun > Deno > pnpm as
fallbacks, and requires package.json plus bun.lock for JS deps.

- Allow package.json when bun.lock is present.
- Allow pnpm-lock.yaml.
- Keep rejecting package-lock.json, npm-shrinkwrap.json, yarn.lock and
  yarn config, and add .nvmrc/.node-version as Node-only pins.
@gitnotebooks

gitnotebooks Bot commented Dec 4, 2026

Copy link
Copy Markdown

Review these changes at https://app.gitnotebooks.com/hyperpolymath/fireflag/pull/81

@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Chores
    • Dependency audit checks now allow a pnpm lockfile as a fallback. They flag projects with a package.json but no Bun lockfile, npm or Yarn lock/configuration files, or Node.js version pins. This updates the audit’s accepted project configurations.

The dependency audit now requires bun.lock when package.json exists. It rejects npm and Yarn lock or configuration files, and Node.js version pins. It no longer rejects pnpm-lock.yaml.

Changes: Dependency audit

Layer / File(s) Summary
Dependency audit conditions
.github/workflows/svalin-scan.yml
The audit requires bun.lock when package.json exists. It rejects npm and Yarn lock or configuration files, and .nvmrc or .node-version. It no longer rejects pnpm-lock.yaml.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • hyperpolymath/fireflag#80: Adds package.json, bun.lock, and pnpm-lock.yaml, which the updated audit allows under its new conditions.
Merge Risk: Minimal · up to 3e5aa

This change aligns the dependency audit with the stated language policy and has no identified merge-blocking issue. The CI failures reported on this PR come from unrelated checks.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the Svalin dependency gate in the CI workflow is made Bun-first. The raw summary confirms the workflow change allows package.json with bun.lock, allows pnpm-lock.yaml,…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description states that the Svalin dependency gate in .github/workflows/svalin-scan.yml was updated to match the language policy. It lists the specific gate changes: package.json allowed with bun.…
Full details: Title check

Explanation

The title names the main change: the Svalin dependency gate in the CI workflow is made Bun-first. The raw summary confirms the workflow change allows package.json with bun.lock, allows pnpm-lock.yaml, and rejects .nvmrc and .node-version. The title is specific and matches the changeset.

Full details: Description check

Explanation

The description states that the Svalin dependency gate in .github/workflows/svalin-scan.yml was updated to match the language policy. It lists the specific gate changes: package.json allowed with bun.lock, pnpm-lock.yaml allowed, npm and yarn artefacts still rejected, and .nvmrc and .node-version now rejected. It also links the change to sweep PR #80 and a separate Prettier finding. This matches the changeset and the PR objectives.

Finishing Touches

Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: fdec3e00-b0c5-4a94-af8f-6f419dbdcfc1
Commits

Reviewing files that changed from the base of the PR and between da92515 and 3e5aa92.

Files selected for processing: 1

  • .github/workflows/svalin-scan.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Recent review details

Context from checks skipped due to timeout: 4

  • GitHub Check: CodeRabbit
  • GitHub Check: analyze (javascript-typescript, none)
  • GitHub Check: vordr-verification
  • GitHub Check: semgrep-cloud-platform/scan
CI failures not shown inline: 3

GitHub Actions: Selur Secrets Detection / 0_selur-scan.txt: fix(ci): make the Svalin dependency gate Bun-first

Conclusion: failure

View job details

##[group]GitIgnore Validation
 ##[warning].gitignore missing pattern: *.env
 ##[error]Process completed with exit code 1.

GitHub Actions: Container Build / container-build: fix(ci): make the Svalin dependency gate Bun-first

Conclusion: failure

View job details

##[group]Run podman build -f .containerization/Containerfile -t fireflag:883593ae6ec4cd26f5dd5a65314ba5f7dd885cde .
 �[36;1mpodman build -f .containerization/Containerfile -t fireflag:883593ae6ec4cd26f5dd5a65314ba5f7dd885cde .�[0m
 shell: /usr/bin/bash -e {0}
 ##[endgroup]
 [1/4] STEP 1/5: FROM cgr.dev/chainguard/wolfi-base:latest AS guix-base
 Trying to pull cgr.dev/chainguard/wolfi-base:latest...
 Getting image source signatures
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying config sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Writing manifest to image destination
 [1/4] STEP 2/5: RUN apk add --no-cache     bash     wget     xz     gpg     tar     ca-certificates
 fetch https://apk.cgr.dev/chainguard/x86_64/APKINDEX.tar.gz
 ERROR: unable to select packages:
   tar (no such package):
     required by: world[tar]
 Error: building at STEP "RUN apk add --no-cache     bash     wget     xz     gpg     tar     ca-certificates": while running runtime: exit status 1
 ##[error]Process completed with exit code 1.

GitHub Actions: Svalin Static Analysis / svalin-analysis: fix(ci): make the Svalin dependency gate Bun-first

Conclusion: failure

View job details

##[group]SPDX Header Check
 ##[warning]Missing SPDX header in extension/lib/rescript/Types.res.js
 ##[error]Process completed with exit code 1.

@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2026

Copy link
Copy Markdown

@linear-code
linear-code Bot marked this pull request as ready for review December 4, 2026 02:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-04T02:30:53.238123Z
We couldn’t complete this review. Comment @codex review to try again.
3e5aa92 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants