Repository navigation
feat(workflows): add dependency-review job to scaffold ci.yml - #1141
Merged
Merged
Conversation
Consumers scaffolded from devkit had no vulnerable-dependency gate. Add a standalone dependency-review job (dependency-review-action v5, fail-on-severity: high) mirroring devkit-own, minus its exceptions allow-list seam. Guarded to public-repo pull requests (#1039 pattern): private repos get a skipped-neutral run and auto-activate when flipped public. Wired into CI Summary with skip-is-OK handling like commit-checks. Refs: #1140
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
Adds the missing vulnerable-dependency gate to the scaffolded consumer CI
(
assets/workspace/.github/workflows/ci.yml), targeting the in-flight 1.3.0release so the next consumer deployments (commit-action redeploy,
sync-issues-action onboarding) ship with it.
dependency-reviewjob — no toolchain, no container, noresolve-toolchaindependency; SHA-pinnedactions/dependency-review-actionv5.0.0 with
fail-on-severity: high.pull_request+!github.event.repository.private),mirroring the codeql.yml/scorecard.yml [FEATURE] Scaffold: guard codeql/scorecard workflows on private repos #1039 pattern: skipped-neutral on
Free-plan private repos, auto-activates when a repo flips public.
CI Summaryrequires it with the same skip-is-OK treatment as the PR-onlycommit-checksjob — only a genuine failure trips the gate.ci.ymlis untouched (it already runs Dependency Review withthe allow-list mechanism); the scaffold version deliberately omits the
exceptions seam.
TDD: shape tests in
tests/test_workflow_private_repo_guard.pycommitted REDfirst (
280712a2), implementation GREEN (76793824); rendered-scaffoldactionlint bats 5/5, full
preksuite green.Changelog entry added under
## [1.3.0] - TBD(### Added) + hook-syncedmirror.
Note for the release driver: rc1 predates this change — an rc2 cut is needed
before finalizing 1.3.0.
Closes #1140