Skip to content

Commit c4373d7

Browse files
refactor: Update to use common-workflows reusable dependency-scan workflow
Co-Authored-By: Patrick Kaeding <[email protected]>
1 parent 6880856 commit c4373d7

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

.github/workflows/dependency-scan.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,8 @@ on:
77
- main
88

99
jobs:
10-
generate-sbom:
11-
runs-on: ${{ github.run_id }}/runner=ubuntu22-2cpu-8gb-x64
12-
steps:
13-
- uses: runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
14-
- uses: launchdarkly/common-actions/init@main
15-
16-
- name: Generate SBOM
17-
uses: launchdarkly/common-actions/dependency-scan/generate-sbom@main
18-
with:
19-
types: 'nodejs'
20-
21-
evaluate-policy:
22-
runs-on: ${{ github.run_id }}/runner=ubuntu22-2cpu-8gb-x64
23-
needs:
24-
- generate-sbom
25-
steps:
26-
- uses: runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
27-
- uses: launchdarkly/common-actions/init@main
28-
29-
- name: Evaluate SBOM Policy
30-
uses: launchdarkly/common-actions/dependency-scan/evaluate-policy@main
31-
with:
32-
artifacts-pattern: bom-*
10+
dependency-scan:
11+
uses: launchdarkly/common-workflows/.github/workflows/dependency-scan.yml@main
12+
with:
13+
types: 'nodejs'
14+
secrets: inherit

0 commit comments

Comments
 (0)