Skip to content

Commit b503f96

Browse files
16francejclaude
andcommitted
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 <noreply@anthropic.com>
1 parent dae910e commit b503f96

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
name: Dependency Review
22

3-
on: pull_request
3+
on:
4+
pull_request:
5+
paths:
6+
- 'package.json'
7+
- 'bun.lock'
8+
- '**/package.json'
9+
- '**/bun.lock'
10+
- '.github/workflows/**'
11+
12+
concurrency:
13+
group: dependency-review-${{ github.event.pull_request.number }}
14+
cancel-in-progress: true
415

516
permissions:
617
contents: read
718

819
jobs:
920
dependency-review:
1021
runs-on: ubicloud-standard-8
22+
timeout-minutes: 10
1123
permissions:
1224
contents: read
1325
pull-requests: write
@@ -16,4 +28,5 @@ jobs:
1628
- uses: actions/dependency-review-action@v4
1729
with:
1830
fail-on-severity: high
31+
fail-on-scopes: runtime, development
1932
comment-summary-in-pr: on-failure

0 commit comments

Comments
 (0)