Skip to content

fix(release): accept Syft root directory evidence - #775

Merged
jeremi merged 1 commit into
mainfrom
fix/release-syft-root-path
Aug 13, 2026
Merged

fix(release): accept Syft root directory evidence#775
jeremi merged 1 commit into
mainfrom
fix/release-syft-root-path

Conversation

@jeremi

@jeremi jeremi commented Aug 13, 2026

Copy link
Copy Markdown
Member

Summary

  • accept the canonical image root / only when parsing native Syft file evidence
  • continue rejecting / in reviewed exposure-assertion paths
  • retain rejection of relative, NUL, repeated/trailing, dot, dot-dot, and duplicate paths
  • add a real-shaped Syft 1.45.1 root-directory regression fixture

Failure reproduced

Release candidate run 31752330081 stopped safely because Syft 1.45.1 reports the actual image root as a directory at /, while the checker classified / as non-normalized. Exact inspection of all three private candidate image digests found the same sole path-shape issue. No candidate bundle, tag, or public release was produced.

Verification

  • python3 -m unittest release/scripts/test_check_advisory_baselines.py (45 passed, 1 platform skip)
  • full python3 -m unittest discover -s release/scripts -p "test_*.py" (360 passed, 1 platform skip)
  • python3 release/scripts/check-gates-inventory.py (151 gates)
  • actionlint
  • git diff --check
  • exact Syft/Grype/OCI/rootfs reproof reached full advisory evaluation for Evidence, Mint, and Relay

The separate accepted-risk baseline rebind remains intentionally out of this PR and requires explicit security approval.

Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
@jeremi
jeremi merged commit c367191 into main Aug 13, 2026
32 checks passed
@jeremi
jeremi deleted the fix/release-syft-root-path branch August 13, 2026 23:38

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e39f4c7519

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".



def validate_image_path(value: Any, field: str) -> str:
def validate_image_path(value: Any, field: str, *, allow_root: bool = False) -> str:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add the required DCO sign-off

The reviewed commit contains no Signed-off-by trailer, so it violates the repository's requirement that every commit use git commit -s and will be rejected by DCO enforcement. Recreate or squash this commit with a valid sign-off before merging.

AGENTS.md reference: AGENTS.md:L272-L275

Useful? React with 👍 / 👎.

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

Successfully merging this pull request may close these issues.

1 participant