sigstore / root-signing

TUF repository for Sigstore trust root
Apache License 2.0
88 stars 81 forks source link

POP verification workflow is failing #743

Closed kommendorkapten closed 1 year ago

kommendorkapten commented 1 year ago

Description

See https://github.com/sigstore/root-signing/pull/742

The POP verification flow fails, as it can't get access to a secret which is needed to post a comment back to the PR that the verification was successful (pull requests don't have access to secrets): https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#accessing-secrets

Workflows triggered using the pull_request event have read-only permissions and have no access to secrets.

I would suggest we remove that functionality, as if the signature verification is failing, the workflow fails and that is clearly visible in the PR.

Options to work around this:

cc @asraa @cpanato

Version

main as of today, 2023-03-22

asraa commented 1 year ago

I would suggest we remove that functionality, as if the signature verification is failing, the workflow fails and that is clearly visible in the PR.

I would likely suggest this.

If we get to the point of fully automating this and want a "review workflow" similar to snapshot/timestamp, then I think it's best as a scheduled cron instead of a trigger on pull request, right?

kommendorkapten commented 1 year ago

Agreed!

I can prepare a PR later today that removes the functionality that adds a comment.