From dae910e5d912270bb1c4b9462a26dc6faa883a3c Mon Sep 17 00:00:00 2001 From: Josh France <12610835+16francej@users.noreply.github.com> Date: Mon, 13 Jul 2026 14:57:53 -0700 Subject: [PATCH 1/2] ci: add dependency-review-action to scan PR dependency changes Fails PRs that introduce dependencies with known high/critical vulnerabilities; posts a summary comment on failure. Co-Authored-By: Claude Fable 5 --- .github/workflows/dependency-review.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/dependency-review.yml diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml new file mode 100644 index 0000000000..52ef37b59e --- /dev/null +++ b/.github/workflows/dependency-review.yml @@ -0,0 +1,19 @@ +name: Dependency Review + +on: pull_request + +permissions: + contents: read + +jobs: + dependency-review: + runs-on: ubicloud-standard-8 + permissions: + contents: read + pull-requests: write + steps: + - uses: actions/checkout@v4 + - uses: actions/dependency-review-action@v4 + with: + fail-on-severity: high + comment-summary-in-pr: on-failure From b503f96a2236da17a65d09a98bdec365e3fd0f21 Mon Sep 17 00:00:00 2001 From: Josh France <12610835+16francej@users.noreply.github.com> Date: Mon, 13 Jul 2026 15:18:13 -0700 Subject: [PATCH 2/2] fix: harden dependency-review workflow from adversarial review Fixes applied: - fail-on-scopes covers development deps, not just runtime (default) - path-filter to dependency manifests + workflow files (GitHub Actions ecosystem changes are also reviewed) - concurrency cancel-in-progress + 10min timeout, matching version-gate Auto-fixed by Claude watch-pipeline Co-Authored-By: Claude Fable 5 --- .github/workflows/dependency-review.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 52ef37b59e..f36e1f7711 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -1,6 +1,17 @@ name: Dependency Review -on: pull_request +on: + pull_request: + paths: + - 'package.json' + - 'bun.lock' + - '**/package.json' + - '**/bun.lock' + - '.github/workflows/**' + +concurrency: + group: dependency-review-${{ github.event.pull_request.number }} + cancel-in-progress: true permissions: contents: read @@ -8,6 +19,7 @@ permissions: jobs: dependency-review: runs-on: ubicloud-standard-8 + timeout-minutes: 10 permissions: contents: read pull-requests: write @@ -16,4 +28,5 @@ jobs: - uses: actions/dependency-review-action@v4 with: fail-on-severity: high + fail-on-scopes: runtime, development comment-summary-in-pr: on-failure