Repository navigation
Conversation
mbevc1
force-pushed
the
20261127_attest-explicit-repo-flags
branch
from
November 27, 2026 22:22
37cc5a2 to
9e9e808
Compare
Contributor
|
Claude finished @mbevc1's task in 1m 21s —— View job Review of new commits (
|
mbevc1
marked this pull request as ready for review
November 27, 2026 22:35
mbevc1
force-pushed
the
20261127_attest-explicit-repo-flags
branch
from
November 27, 2026 22:35
38ef228 to
095f27e
Compare
CommonAttestationOptions kept repoURLExplicit and repoNameExplicit, which each of the 13 attest commands had to set by hand in its RunE before calling run. A command that forgot would silently treat --repository and --repo-url as defaulted. run already holds the flag set, so it now asks it directly through explicit(), as the --no-commit-info path does. No behaviour changes. attest artifact and begin trail keep their own repoNameExplicit: they do not embed CommonAttestationOptions. The wiring suite gains a case for an explicit --repo-url being validated, the read this change moved that no dry-run test covered.
The server-backed suites already test an invalid --repo-url. This case exists because it runs in dry-run mode, which its name now says.
mbevc1
force-pushed
the
20261127_attest-explicit-repo-flags
branch
from
November 27, 2026 22:38
095f27e to
8975d3b
Compare
3 tasks done
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes the hand-wired
repoURLExplicitandrepoNameExplicitfields fromCommonAttestationOptions. The sharedrunnow asks the flag set it already holds, through theexplicit()helper added in #1420.Each of the 13 attest commands had to set the two fields in its
RunEbefore callingrun. A command that forgot would silently treat--repositoryand--repo-urlas defaulted from CI. This follows up a suggestion in the review of #1420.Stacked on #1420: the base branch is
20261127_attest-no-commit-info, which holds the helper. Review and merge that PR first.cmd.Flags().Changed(...)is evaluated at the same point as before, on the same flag set.attest artifactandbegin trailkeep their ownrepoNameExplicit. Their option structs do not embedCommonAttestationOptions.--repo-urlbeing validated. This change moved that read, and no dry-run test covered it. The case fails when the read is broken.Checklist
charts/k8s-reporter/) updated, if needed. Note: these changes live in a separate PR (not needed)