Skip to content

Commit c815959

Browse files
chore: add dependency-scan GitHub Actions workflow (#615)
* feat: add dependency-scan GitHub Actions workflow Generate Go and 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. Mixed-language repository with both Go and Node.js components. Co-Authored-By: Patrick Kaeding <[email protected]> * chore: trigger CI re-run for title lint check Co-Authored-By: Patrick Kaeding <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent a0a852f commit c815959

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Dependency Scan
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
generate-go-sbom:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Setup Go
16+
uses: actions/setup-go@v5
17+
with:
18+
go-version-file: go.mod
19+
20+
- name: Generate SBOM
21+
uses: launchdarkly/gh-actions/actions/dependency-scan/generate-sbom@main
22+
with:
23+
types: 'go'
24+
25+
generate-nodejs-sbom:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- name: Generate SBOM
31+
uses: launchdarkly/gh-actions/actions/dependency-scan/generate-sbom@main
32+
with:
33+
types: 'nodejs'
34+
35+
evaluate-policy:
36+
runs-on: ubuntu-latest
37+
needs:
38+
- generate-go-sbom
39+
- generate-nodejs-sbom
40+
steps:
41+
- name: Evaluate SBOM Policy
42+
uses: launchdarkly/gh-actions/actions/dependency-scan/evaluate-policy@main
43+
with:
44+
artifacts-pattern: bom-*

0 commit comments

Comments
 (0)