Skip to content

Commit

Permalink
adding SBOM-generation to build process
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuxdeangelo committed Apr 21, 2024
1 parent 26336fb commit a69929c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build-and-publish-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,21 @@ jobs:
- name: Run build
run: cd SBOM-Catalog && npm run build

- name: Syft SPDX SBOM generation
uses: anchore/sbom-action@v0
with:
artifact-name: sbom-spdx
format: spdx-json

- name: Syft CycloneDx SBOM generation
uses: anchore/sbom-action@v0
with:
artifact-name: sbom-cyclonedx
format: cylconedx-json

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: SBOM-Catalog/dist
branch: gh-pages

14 changes: 1 addition & 13 deletions .github/workflows/build-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,4 @@ jobs:
run: cd SBOM-Catalog && npm install

- name: Run build
run: cd SBOM-Catalog && npm run build

- name: Syft SPDX SBOM generation
uses: anchore/sbom-action@v0
with:
artifact-name: sbom-spdx
format: spdx-json

- name: Syft CycloneDx SBOM generation
uses: anchore/sbom-action@v0
with:
artifact-name: sbom-cyclonedx
format: cylconedx-json
run: cd SBOM-Catalog && npm run build

0 comments on commit a69929c

Please sign in to comment.