-
Notifications
You must be signed in to change notification settings - Fork 4
Can't verify sbom attestation #145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@pputman-clabs in order to verify the attestation, you need to supply the artifact that was attested (the subject) to the
|
I'm sorry, aren't we attesting to the actual SBOM, to say that yes, this is a valid bill of materials? If I'm building a provenance and sbom attestation, how do I verify them each independently? |
just to show you that I am running an attestation verify, but it only shows the provenance attestations, nothing to do with the sbom.
|
By default, the
|
@pputman-clabs To tie a loop here, you use the You can then use the As an example for a file (not a container image) that I wanted to verify: gh attestation verify build.tar.gz \
--owner joshjohanning-org \
--predicate-type https://spdx.dev/Document/v2.3 \
--format json \
--jq '.[].verificationResult.statement.predicate' Result (you can see packages references here): I am using the SBOM artifact created in GitHub for my example. Here is the relevant snippet from the workflow file: - uses: advanced-security/generate-sbom-action@v1
id: gensbom
- name: Attest SBOM
uses: actions/attest-sbom@v2
with:
subject-path: 'staging/build.tar.gz'
sbom-path: '${{ steps.gensbom.outputs.fileName }}' |
I'm unable to verify the attestation of the sbom. In my workflow (added below), I create an sbom.json file which is uploaded as an artifact for sbom.spdx.json. If I download the artifact created, and run the following:
Since this is the SBOM that was generated and used with this action to sign, should I not be able to verify the attestation of this sbom file?
The text was updated successfully, but these errors were encountered: