Skip to content

ci: migrate from deprecated attest wrappers to actions/attest - #152

Merged
cbrgm merged 4 commits into
mainfrom
ci-migrate-to-actions-attest
Aug 20, 2026
Merged

ci: migrate from deprecated attest wrappers to actions/attest#152
cbrgm merged 4 commits into
mainfrom
ci-migrate-to-actions-attest

Conversation

@cbrgm

@cbrgm cbrgm commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

What

Same change as opendefensecloud/solution-arsenal#759 and opendefensecloud/artifact-conduit#460, applied here. Full reasoning is over there, i wont copy it.

  • docker.yaml: Attest SBOM + Attest provenance -> actions/attest, pinned 1e69f48 (v4 / v4.2.2)
  • 2nd commit: create-storage-record: false on both steps

Why

actions/attest-sbom and actions/attest-build-provenance are deprecated and today just shell out to actions/attest anyway, so this cuts out the middleman before the wrappers go away.

Testing

Locally: actionlint clean on the changed file, 0 findings.

The upstream twin PRs are verified end to end, an ok-to-image run there was green on all 8 images with 0 warnings in the attest steps, and the attestations verify independently via gh attestation verify against Rekor for both https://slsa.dev/provenance/v1 and https://cyclonedx.org/bom.

Not yet verified in this repo. Needs an ok-to-image run before merge:

  • Attestation uploaded to repository + to registry on both steps, 4/4
  • no attest-sbom has been deprecated warning
  • no Failed to create storage record warnings

Notes for reviewers

Workflows only, no CRD/API/RBAC. Dont squash blindly, commit 1 is behavior-neutral and commit 2 is not.

Ref opendefensecloud/odd-internal#75

cbrgm added 2 commits August 20, 2026 10:17
actions/attest-sbom and actions/attest-build-provenance are deprecated
and today are thin wrappers around actions/attest, so this just cuts out
the middleman. Inputs are identical (subject-name, subject-digest,
sbom-path, push-to-registry), the attestation type is picked from the
inputs -> sbom-path gives an SBOM attestation, no sbom-path gives SLSA
build provenance.

Pinned to 1e69f48 (v4 / v4.2.2). Same change as solution-arsenal#759 and
artifact-conduit#460.
create-storage-record defaults to true whenever push-to-registry is set,
so every attest step tries it and every one of them fails with "Failed to
persist storage record: no artifacts found". Thats 2 warnings per image,
4 per build here, and it has never once succeeded.

Storage records only feed the org Linked Artifacts page, which we dont
use. The attestations themselves are unaffected, they still land in the
repo and get pushed to ghcr. The error is not an auth failure either, the
"check the artifact-metadata:write permission" hint the action prints
after it is unconditional and the org check already passes -> adding that
permission would be a guess.
@cbrgm
cbrgm requested a review from a team August 20, 2026 08:18
@coderabbitai

coderabbitai Bot commented Aug 20, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: be122b34-b924-4406-b2cd-d26ecb8bbffb


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cbrgm cbrgm added the ok-to-image PR is allowed to run container build label Aug 20, 2026
cbrgm added 2 commits August 20, 2026 10:27
Every other pin in this repo carries the full vX.Y.Z, 29 of 29, so a bare
"# v4" was the odd one out. The SHA is what actually pins it, but the
comment is what people read.

@BergCyrill BergCyrill left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Validated attestations (provenance & sbom) and digest - lgtm

@cbrgm
cbrgm merged commit 3800e2e into main Aug 20, 2026
7 checks passed
@cbrgm
cbrgm deleted the ci-migrate-to-actions-attest branch August 20, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-image PR is allowed to run container build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants