File tree Expand file tree Collapse file tree 1 file changed +32
-10
lines changed
Expand file tree Collapse file tree 1 file changed +32
-10
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments