Skip to content

Commit f8fb538

Browse files
ci: [SEC-7263] Update dependency-scan workflow to use common-actions (#1775)
* feat: update dependency-scan workflow to use common-actions Replace launchdarkly/gh-actions with launchdarkly/common-actions for SEC-7263. Update to use runs-on runner pattern and add proper artifacts configuration. Co-Authored-By: Patrick Kaeding <[email protected]> * fix: add permissions to dependency-scan workflow jobs Add id-token: write and contents: read permissions to both generate-nodejs-sbom and evaluate-policy jobs to enable access to private launchdarkly/common-actions repository. Co-Authored-By: Patrick Kaeding <[email protected]> * fix: add custom GitHub token authentication to dependency-scan workflow Add CUSTOM_GITHUB_TOKEN retrieval via release-secrets action to both jobs to enable access to private launchdarkly/common-actions repository. Co-Authored-By: Patrick Kaeding <[email protected]> * fix: revert to use launchdarkly/gh-actions for public repo access Switch from private common-actions to public gh-actions for SEC-7263. Simplify workflow structure to match working implementation. Co-Authored-By: Patrick Kaeding <[email protected]> * fix: use ubuntu-latest runner instead of custom runner spec Remove custom runs-on configuration that was causing runner resolution failures. Simplify to standard ubuntu-latest for SEC-7263. Co-Authored-By: Patrick Kaeding <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent cf6976c commit f8fb538

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed
Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
name: Dependency Scan
22

3-
on: pull_request
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
48

59
jobs:
6-
dependency-scan:
10+
generate-nodejs-sbom:
711
runs-on: ubuntu-latest
812
steps:
13+
- uses: actions/checkout@v4
914
- name: Setup Go
1015
uses: actions/setup-go@v6
1116
with:
@@ -14,7 +19,14 @@ jobs:
1419
- name: Generate SBOM
1520
uses: launchdarkly/gh-actions/actions/dependency-scan/generate-sbom@main
1621
with:
17-
types: 'go,nodejs'
22+
types: 'nodejs'
1823

24+
evaluate-policy:
25+
runs-on: ubuntu-latest
26+
needs:
27+
- generate-nodejs-sbom
28+
steps:
1929
- name: Evaluate SBOM Policy
2030
uses: launchdarkly/gh-actions/actions/dependency-scan/evaluate-policy@main
31+
with:
32+
artifacts-pattern: bom-*

0 commit comments

Comments
 (0)