Fix build: pass --disable-path-validation to oras attach#139
Merged
Conversation
oras now rejects the absolute temp file path passed to `oras attach`
("absolute file path detected"), failing the referrer-publish step.
The path is an intentional mktemp dir we control, so disable the check.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the build-cssc-dashboard GitHub Actions workflow to accommodate a behavioral change in the ORAS CLI where oras attach now rejects absolute file paths by default. It ensures the workflow can continue attaching extracted SBOM/provenance in-toto statements (stored in a mktemp -d directory) as OCI 1.1 referrers.
Changes:
- Add
--disable-path-validationto theoras attachinvocation used when attaching per-platform in-toto statements. - Preserve the existing
mktemp -dbased workflow structure while unblocking the “Publish attestations as OCI 1.1 referrers” step.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Problem
The
build / cssc-dashboardrun 28605221190 failed for all three services at the Publish attestations as OCI 1.1 referrers step with:Current
orasrejects the absolute temp-file path passed tooras attach. The step code was unchanged, so this is anoraspath-validation behavior change.Fix
Add
--disable-path-validationto theoras attachinvocation. The file lives in an intentionalmktemp -ddirectory we control, so skipping the check is safe.actionlint clean.