Skip to content

Commit e07d652

Browse files
feat: [SEC-7263] Add dependency-scan GitHub Actions workflow
Generate Node.js SBOM using launchdarkly/gh-actions for SEC-7263. Add policy evaluation step with bom-* artifacts pattern. Configure triggers for pull requests and main branch pushes. Co-Authored-By: Patrick Kaeding <[email protected]>
1 parent 533b4b5 commit e07d652

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Dependency Scan
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
generate-nodejs-sbom:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Generate SBOM
16+
uses: launchdarkly/gh-actions/actions/dependency-scan/generate-sbom@main
17+
with:
18+
types: 'nodejs'
19+
20+
evaluate-policy:
21+
runs-on: ubuntu-latest
22+
needs:
23+
- generate-nodejs-sbom
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: Evaluate SBOM Policy
28+
uses: launchdarkly/gh-actions/actions/dependency-scan/evaluate-policy@main
29+
with:
30+
artifacts-pattern: bom-*

0 commit comments

Comments
 (0)