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

plugin: Skip keyless verification for private third-party plugins #2223

Merged
merged 1 commit into from
Feb 1, 2025

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Jan 28, 2025

Fixes #2209
See also #2159

The keyless verification of plugins introduced in v0.55 is intended for public repositories and does not work properly for private repositories. Artifact attestations generated in private repositories do not include transparency logs, and the issuer of the certificate is GitHub, Inc, not sigstore.dev.

We can configure a policy to allow you to verify artifact attestations generated in private repositories by following the GitHub CLI, but given the plan limitations on the use of artifact attestations in private repositories, it may be difficult to enforce it in the future.

Given that the risk of plugin tampering in private repositories is lower than in public repositories, we thought it would be reasonable to skip verification in private repositories as a first step.

This PR changes the artifact attestation verification to be skipped if the source repository is private. In the future, artifact attestations for private repositories may be verified.

@wata727 wata727 force-pushed the skip_private_plugin_verify branch from 70689a3 to f845d2a Compare February 1, 2025 13:13
@wata727 wata727 marked this pull request as ready for review February 1, 2025 13:33
@wata727 wata727 merged commit 960377a into master Feb 1, 2025
14 checks passed
@wata727 wata727 deleted the skip_private_plugin_verify branch February 1, 2025 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Failed to verify third-party plugin signature in private repositories
1 participant