-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: As a developer I want a pipeline to create a SBOM and analyse i…
…t with through the CSAF
- Loading branch information
1 parent
1888a98
commit 32fc356
Showing
2 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
# GitHub recommends pinning actions to a commit SHA. | ||
# To get a newer version, you will need to update the SHA. | ||
# You can also reference a tag or branch, but the action may change without warning. | ||
|
||
name: "Supply Chain Security C4PO SBOM Demo" | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
|
||
env: | ||
ANGULAR_PATH: security-c4po-angular | ||
API_PATH: security-c4po-api | ||
REPORTING_PATH: security-c4po-reporting | ||
CFG_PATH: security-c4po-cfg | ||
|
||
ANGULAR_CLI_VERSION: 13 | ||
|
||
|
||
jobs: | ||
|
||
angular_job: | ||
name: "Angular SBOM Job" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Generate SecurityC4PO Project SBOM" | ||
id: angular_sbom | ||
uses: anchore/sbom-action@v0 | ||
with: | ||
format: cyclonedx-json | ||
output-file: '${{ github.event.repository.name }}-sbom.cyclonedx.json' | ||
upload-artifact: true | ||
|
||
reporting_job: | ||
name: "Reporting SBOM Job" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Generate Reporting SBOM" | ||
id: reporting_sbom | ||
uses: anchore/sbom-action@v0 | ||
with: | ||
path: './security-c4po-reporting' | ||
format: cyclonedx-json | ||
output-file: "${{ github.event.repository.name }}-reporting-sbom.cyclonedx.json" | ||
upload-artifact: true | ||
|
||
# Working version to generate & analyse SBOMs | ||
# Might be not good for company data | ||
- name: "Generate SBOM" | ||
id: sbom_generation | ||
uses: codenotary/sbom.sh-create@main | ||
with: | ||
scan_type: 'grypefs' | ||
target: './security-c4po-reporting' # . -> Assuming you want to scan the entire repository | ||
|
||
- name: Output SBOM URL | ||
run: echo "The Reportingservice SBOM can be found at $SBOM_SHARE_URL" |