Repository navigation
Conversation
gstack ships dependency-bearing manifests (package.json, bun.lock) but has no pull-request gate that blocks newly introduced known-vulnerable dependencies. A PR can currently add or bump an npm/Bun dependency with no CI check against advisories. Add a Dependency Review workflow using GitHub's official actions/dependency-review-action, which diffs the dependency graph (base...head) on each pull request and fails when a change introduces a dependency with a high or critical advisory. The threshold is documented inline and easy to tighten to moderate/low. Matches existing workflow house style (ubicloud-standard-8 runner, version- tagged actions, minimal contents:read permissions). Validated with actionlint 1.7.12 (the same linter run by .github/workflows/actionlint.yml): no issues. Fixes garrytan#1987 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
time-attack
pushed a commit
to time-attack/gstack
that referenced
this pull request
Jul 13, 2026
… this repo The workflow (from community PR garrytan#2038) requires GitHub's Dependency Graph, which needs an admin toggle we don't have access to. Without it the check errors on every PR instead of gating anything. Local 'bun audit' plus the diff@9 advisory bump cover the actual dependency risk for this fork. Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
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.
Problem
gstack ships dependency-bearing manifests (
package.json,bun.lock) but has no pull-request dependency-review gate. A PR can currently add or bump an npm/Bun dependency without any CI check that blocks newly introduced known vulnerabilities.Confirmed on
origin/main(c7ae632): the workflows present areactionlint,ci-image,evals,evals-periodic,make-pdf-gate,pr-title-sync,skill-docs,version-gate,windows-free-tests,windows-setup-e2e— none of them does dependency review, andgit grep -E 'dependency-review|osv-scanner|scorecard|codeql|attestation|Dependabot'over.github/package.json/bun.lockreturns nothing.Fix
Add
.github/workflows/dependency-review.ymlusing GitHub's officialactions/dependency-review-action. On every pull request it diffs the dependency graph (base...head) and fails the check when a change introduces a dependency with a high or critical advisory. The action only runs inpull_requestcontext (it needs a base/head diff), so the trigger is scoped topull_request.fail-on-severity: highis a conservative first threshold (blocks high/critical, ignores low/moderate noise). Documented inline and trivial to tighten tomoderate/low.permissions: contents: readonly — fork-safe, no comment-summary, no write scope needed.runs-on: ubicloud-standard-8, version-tagged actions (actions/checkout@v4).Testing
.github/workflows/actionlint.yml(rhysd/actionlint): no issues.Scope
One new file. No VERSION/CHANGELOG bump required (
version-gateonly triggers onVERSION/CHANGELOG.md/package.jsonchanges).Fixes #1987
🤖 Generated with Claude Code