Repository navigation
fix(release): accept normalized PostgreSQL digest refs #536
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,7 +71,15 @@ def image_evidence(report: Any, report_name: str, target_key: str) -> tuple[str, | |
| if SHA256_DIGEST.fullmatch(digest) is None: | ||
| fail(f"{report_name} image target must use a sha256 digest") | ||
| repo_digests = target.get("repoDigests") | ||
| if not isinstance(repo_digests, list) or user_input not in repo_digests: | ||
| if ( | ||
| not isinstance(repo_digests, list) | ||
| or not any( | ||
| isinstance(repo_digest, str) | ||
| and "@" in repo_digest | ||
| and repo_digest.rsplit("@", 1)[1] == digest | ||
|
Comment on lines
+78
to
+79
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When either report contains a malformed entry such as AGENTS.md reference: AGENTS.md:L79-L81 Useful? React with 👍 / 👎. |
||
| for repo_digest in repo_digests | ||
| ) | ||
| ): | ||
| fail(f"{report_name} image target digest must appear in repoDigests") | ||
| if target.get("architecture") != "amd64" or target.get("os") != "linux": | ||
| fail(f"{report_name} image target must be linux/amd64") | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The full message for commit
c5361ccf5edae41e560c77807d7f27832a6861e2has noSigned-off-by:trailer, while the rootAGENTS.mdrequires a DCO sign-off on every commit; recreate this commit with a matching sign-off before it is merged.AGENTS.md reference: AGENTS.md:L70-L70
Useful? React with 👍 / 👎.