Skip to content
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

Fails without helpful guidance #78

Closed
oliversalzburg opened this issue May 30, 2024 · 2 comments
Closed

Fails without helpful guidance #78

oliversalzburg opened this issue May 30, 2024 · 2 comments

Comments

@oliversalzburg
Copy link

oliversalzburg commented May 30, 2024

In one of my pipelines the attestation fails with the output:

 Error: Failed to persist attestation: Server Error - https://docs.github.com/rest/repos/repos#create-an-attestation

The link leads to a documentation page that seems to relate to completely different information.

When the attestation process fails, it would be helpful to get better guidance.

@phillmv
Copy link
Contributor

phillmv commented May 31, 2024

Hello & thanks for reaching out :). We've actually been monitoring these failures over the past couple of days, so it's great to communicate directly.

We're working on addressing this (friendlier errors, fixing the docs link, having the API not error out 😅) but in the meantime… the issue is the default SBOM being generated for your dockerfile is larger than we envisioned supporting 🤦‍♀️.

To be clear, this is a failure on our side; you're even using the action we recommended in our docs/blog post.

But while we figure out how to best support this, our recommendation is to try to find a way to generate an SBOM that meets your needs but encodes less redundant information. (Or even… compressing the sbom before trying to attest it? 🤔 We haven't tried that yet)

Thanks for trying our feature out! We're sorry you ran into these errors, but at least it's helped us uncover these limitations.

@oliversalzburg
Copy link
Author

in the meantime… the issue is the default SBOM being generated for your dockerfile is larger than we envisioned supporting

Thank you, that was actually also my suspicion. I then figured that having an SBOM this large is maybe an error on my part, and I started to trim down the complexity of the image, which resolved the problem for me.

I was just trying to get an all around better understanding of SBOM and attestation features. I have no immediate use case that I'm trying to support, other than creating building blocks for future requirements.

Thanks for the great response :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants