Skip to content

Commit f408c63

Browse files
author
liuxuezhuo
committed
ci(security): park dependency-review until Dependency graph is enabled
The action fails without the repository Dependency graph, which requires org admin access to enable. New-dependency vulnerabilities remain gated by npm audit --omit=dev in ci.yml; the job definition is kept as a comment for easy restoration.
1 parent cb5fd71 commit f408c63

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/security.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,19 @@ jobs:
2828
- name: Analyze
2929
uses: github/codeql-action/analyze@a2983b8bed1923f44751c5c43237f479442827b3 # v3
3030

31-
dependency-review:
32-
name: Dependency review
33-
if: github.event_name == 'pull_request'
34-
runs-on: ubuntu-latest
35-
steps:
36-
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
37-
- name: Review dependency changes
38-
uses: actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48 # v4.9.0
31+
# actions/dependency-review-action requires the repository's Dependency
32+
# graph to be enabled (Settings > Code security and analysis). Until an
33+
# org admin enables it, newly introduced vulnerabilities are still gated
34+
# by the "npm run audit:prod" step in ci.yml. To restore this job:
35+
#
36+
# dependency-review:
37+
# name: Dependency review
38+
# if: github.event_name == 'pull_request'
39+
# runs-on: ubuntu-latest
40+
# steps:
41+
# - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
42+
# - name: Review dependency changes
43+
# uses: actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48 # v4.9.0
3944

4045
secrets:
4146
name: Secret scan

0 commit comments

Comments
 (0)