Skip to content

Commit d4c7923

Browse files
NRL-1417 SBOM step needs docker in action image
1 parent 5a6f355 commit d4c7923

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.github/workflows/daily-build.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ jobs:
3838
- name: Run Unit Tests
3939
run: make test
4040

41-
- name: Generate SBOM
42-
uses: nhs-england-tools/trivy-action/sbom-scan@v1.4.0
43-
with:
44-
repo-path: "./"
45-
4641
- name: Build Project
4742
run: make build
4843

@@ -72,3 +67,18 @@ jobs:
7267
with:
7368
key: ${{ github.run_id }}-nrlf-permissions
7469
path: dist/nrlf_permissions.zip
70+
71+
sbom:
72+
name: Generate SBOM - ${{ github.ref }}
73+
runs-on: ubuntu-latest
74+
75+
steps:
76+
- name: Git clone - ${{ github.ref }}
77+
uses: actions/checkout@v4
78+
with:
79+
ref: ${{ github.ref }}
80+
81+
- name: Generate SBOM
82+
uses: nhs-england-tools/trivy-action/sbom-scan@v1.4.0
83+
with:
84+
repo-path: "./"

.github/workflows/pr-env-deploy.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ jobs:
6969
- name: Build Project
7070
run: make build
7171

72-
- name: Generate SBOM
73-
uses: nhs-england-tools/trivy-action/sbom-scan@v1.4.0
74-
with:
75-
repo-path: "./"
76-
7772
- name: Configure Management Credentials
7873
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a #v4.3.1
7974
with:

0 commit comments

Comments
 (0)