Skip to content

Commit 021f741

Browse files
committed
add more sbom details
1 parent 960aa82 commit 021f741

File tree

1 file changed

+32
-10
lines changed

1 file changed

+32
-10
lines changed

.github/workflows/quality-checks.yml

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,6 @@ jobs:
9292
with:
9393
node_version: ${{ inputs.node_version }}
9494

95-
- name: Upload SBOMs
96-
uses: actions/upload-artifact@v3
97-
if: success() || failure()
98-
with:
99-
name: SBOMS
100-
path: '**/*sbom*.json'
101-
102-
- name: Run linting for TypeScript and Python
103-
run: make lint
104-
10595
- name: actionlint
10696
uses: raven-actions/actionlint@v2
10797

@@ -251,3 +241,35 @@ jobs:
251241
env:
252242
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
253243
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
244+
sbom_checks:
245+
runs-on: ubuntu-latest
246+
steps:
247+
- name: Checkout code
248+
uses: actions/checkout@v4
249+
with:
250+
ref: ${{ env.BRANCH_NAME }}
251+
fetch-depth: 0
252+
253+
- name: Setting up .npmrc
254+
env:
255+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
256+
run: |
257+
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
258+
echo "@nhsdigital:registry=https://npm.pkg.github.com" >> ~/.npmrc
259+
260+
- name: make install
261+
run: |
262+
make install
263+
264+
- name: Generate and check SBOMs
265+
uses: NHSDigital/eps-action-sbom@more_details
266+
with:
267+
node_version: ${{ inputs.node_version }}
268+
269+
- name: Upload SBOMs
270+
uses: actions/upload-artifact@v3
271+
if: success() || failure()
272+
with:
273+
name: SBOMS
274+
path: '**/*sbom*.json'
275+

0 commit comments

Comments
 (0)