Skip to content

Commit

Permalink
Updates to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
thavelock committed Oct 4, 2023
1 parent ef40ced commit 0cfeb6b
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/generate-sbom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,38 @@ on:
workflow_dispatch:
workflow_call:

env:
ANGULAR_CLI_VERSION: 13
jobs:
sbom-open-source:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Checkout Repo
uses: actions/checkout@master

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 18.4

- name: "Install CLI tools"
run: npm install -g @angular/cli@$ANGULAR_CLI_VERSION

- name: Install minimalistically
run: |
npm install --ignore-scripts
cd frontend
npm install --ignore-scripts --legacy-peer-deps
- uses: snyk/actions/setup@master
- name: Setup Snyk
uses: snyk/actions/setup@master

- name: Snyk SBOM Generate
run: snyk sbom --all-projects --exclude=build --format=cyclonedx1.4+json --json-file-output=sbom-cyclonedx.json # Exclude the 'build' directory
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: 'Upload SBOM'

- name: Upload SBOM
uses: actions/upload-artifact@v3
with:
name: sbom-cyclonedx
Expand Down

0 comments on commit 0cfeb6b

Please sign in to comment.