mirror of https://github.com/garrytan/gstack.git
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>
This commit is contained in:
parent
dae910e5d9
commit
b503f96a22
|
|
@ -1,6 +1,17 @@
|
||||||
name: Dependency Review
|
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:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
@ -8,6 +19,7 @@ permissions:
|
||||||
jobs:
|
jobs:
|
||||||
dependency-review:
|
dependency-review:
|
||||||
runs-on: ubicloud-standard-8
|
runs-on: ubicloud-standard-8
|
||||||
|
timeout-minutes: 10
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
@ -16,4 +28,5 @@ jobs:
|
||||||
- uses: actions/dependency-review-action@v4
|
- uses: actions/dependency-review-action@v4
|
||||||
with:
|
with:
|
||||||
fail-on-severity: high
|
fail-on-severity: high
|
||||||
|
fail-on-scopes: runtime, development
|
||||||
comment-summary-in-pr: on-failure
|
comment-summary-in-pr: on-failure
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue