generated from testifysec/demo-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Cole
committed
Jul 13, 2024
1 parent
d9a233a
commit 2b8b83d
Showing
1 changed file
with
14 additions
and
7 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,15 +39,22 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: Build Image | ||
shell: bash | ||
run: | | ||
docker buildx build -t ${{ steps.meta.outputs.tags }} --push . | ||
uses: testifysec/witness-run-action@reusable-workflow # v0.2.0 | ||
with: | ||
archivista-server: "https://judge-api.aws-sandbox-staging.testifysec.dev" | ||
step: build-image | ||
attestations: "environment git github slsa" | ||
command: /bin/sh -c "docker buildx build -t ${{ steps.meta.outputs.tags }} --push ." | ||
|
||
- name: Generate SBOM | ||
shell: bash | ||
run: | | ||
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin | ||
syft ${{ steps.meta.outputs.tags }} --source-name=pkg:oci/${{ github.repository }} -o cyclonedx-json --file sbom.cdx.json | ||
uses: testifysec/witness-run-action@reusable-workflow # v0.2.0 | ||
with: | ||
archivista-server: "https://judge-api.aws-sandbox-staging.testifysec.dev" | ||
step: gen-sbom | ||
attestations: "environment git github sbom" | ||
command: | | ||
/bin/sh -c "curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin v1.7.0 && \ | ||
syft ${{ steps.meta.outputs.tags }} --source-name=pkg:oci/${{ github.repository }} -o cyclonedx-json --file sbom.cdx.json" | ||
- name: Upload SBOM | ||
uses: actions/[email protected] | ||
|