Skip to content

Fix release approval attach on absolute paths - #7203

Open
eriknordmark wants to merge 1 commit into
lf-edge:masterfrom
eriknordmark:fix-release-approval-attach
Open

eriknordmark wants to merge 1 commit into
lf-edge:masterfrom
eriknordmark:fix-release-approval-attach

Conversation

@eriknordmark

Copy link
Copy Markdown
Contributor

Description

The "Attach and verify" step of release-approval.yml passes absolute paths
under $RUNNER_TEMP to oras attach, which refuses them. Run 45302438002
(release 17.14.0) failed there after the release was published, so the
approval is not attached to its images. The step now runs from the release
directory and uses relative file names; oras's path check stays on.

How to test and validate this PR

Not covered by an automated test. The workflow runs only on master
(workflow_dispatch, guarded to lf-edge/eve and refs/heads/master).

Local check with oras 1.3.1, the version the workflow pins, against a local
registry, using the real 17.14.0 approval bundle:

  • The step as it is on master fails with absolute file path detected,
    exit 1, and attaches nothing.
  • The fixed step attaches the bundle and prints attached, visible after 0s.
    A second run prints already attached.
  • cosign was stubbed to check only that a bundle referrer is visible. The
    signature check against the signer identity was not run.

After merge, rerun the approval:
gh workflow run release-approval.yml -R lf-edge/eve --ref master -f tag=17.14.0

Changelog notes

None.

PR Backports

  • 17.0-stable: No, the workflow is not present there.
  • 16.0-stable: No, the workflow is not present there.
  • 14.5-stable: No, the workflow is not present there.
  • 13.4-stable: No, the workflow is not present there.

Checklist

Device tests do not apply to a workflow change. The boxes are left unchecked
for the reviewer.

  • I've provided a proper description
  • I've added the proper documentation
  • I've tested my PR on amd64 device
  • I've tested my PR on arm64 device
  • I've written the test verification instructions
  • I've set the proper labels to this PR

🤖 Generated with Claude Code

The approval workflow passed absolute paths under $RUNNER_TEMP to
oras attach, which refuses them. Attaching the approval to the images
of release 17.14.0 failed after the release was published, so the
images carry no approval. The step now reads the release files from
their directory by relative name, keeping oras's path check on.

Signed-off-by: eriknordmark <erik@zededa.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
@eriknordmark
eriknordmark marked this pull request as ready for review November 24, 2026 01:27

This branch has not been deployed

No deployments
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