Repository navigation
Chore: Modernise attestation and verify commands - #99
Merged
ModeSevenIndustrialSolutions merged 2 commits intoOct 9, 2026
Merged
ModeSevenIndustrialSolutions merged 2 commits into
ModeSevenIndustrialSolutions merged 2 commits into
Conversation
ModeSevenIndustrialSolutions
requested review from
a team
and
a balanced review from Copilot
October 9, 2026 12:07
ModeSevenIndustrialSolutions
force-pushed
the
docs/cosign-identity
branch
from
October 9, 2026 12:17
47a5cd4 to
097b696
Compare
The release verification section documented two commands that cannot pass for a genuine release. The attest and sign jobs run inside the reusable workflow, so Fulcio names that workflow, at the ref the caller pinned, in the certificate SAN. The project's repository and tag sit only in the GitHub OIDC extensions. The cosign regexp ended in @refs/tags/<tag> and so never matched, and gh attestation verify with --repo alone expects a signer in the project repository. Evidence: no go-workflows release has run yet; onap/multicloud-k8s, the one caller, has no releases. node-workflows' merge.yaml signs the same way (cosign-installer v4.1.2, keyless cosign sign-blob) and attests with actions/attest v4.2.2, which this workflow reaches through actions/attest-build-provenance v4.2.2. Its bundle from onap/sdc-onap-ui-common run 37592010404 carries: SAN .../workflows/merge.yaml@e40013bb... Workflow Repository onap/sdc-onap-ui-common Workflow Ref refs/heads/master Workflow Trigger workflow_dispatch Against that bundle the old cosign form failed, while the new form verified and rejected a wrong repository, ref, trigger, workflow file and a tampered file. gh attestation verify failed with --repo alone and passed with --signer-workflow; a wrong --source-ref, --signer-workflow or --repo was rejected. cosign v2.2.4 could not read the v0.3 bundle, so the section now asks for cosign v3 or later. It also asks for gh v2.102.0 or later: earlier releases matched --signer-workflow as a prefix (GHSA-wjmr-j3rp-mh2g) and --source-ref case-insensitively (GHSA-4mq3-hpgx-9cx8). The commands accept any revision of the reusable workflow, so the section shows how to pin one: gh --signer-digest <sha>, or cosign --certificate-identity with the full SAN. Against the bundle, the pinned SHA verified and an all-zero SHA was rejected by both tools. The Workflow Repository and Ref extensions describe the calling run, not the checkout: the workflow's repository and ref inputs can build other source under the same values. The table labels them as caller fields and the section says when they identify the packaged source. The gh command keeps <binary> rather than checksums.txt: the attest job's subject-path is dist/*, the binaries, so checksums.txt carries no attestation of its own. The go-workflows values (push trigger, refs/tags/<tag>) are inferred from the shared signing mechanism and the tag-push callers in examples/; the first release can confirm them with these commands. Refs: lfreleng-actions/node-workflows#149 Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
ModeSevenIndustrialSolutions
force-pushed
the
docs/cosign-identity
branch
from
October 9, 2026 12:27
097b696 to
71fc08a
Compare
As of v4, actions/attest-build-provenance is a thin wrapper that forwards its inputs to actions/attest, and GitHub directs new implementations to actions/attest. With no predicate supplied, actions/attest emits SLSA build provenance by default, so swapping the uses: line is like-for-like: subject-path, the job permissions and the egress allow-list stay as they were. The wrapper's one addition, a larger NODE_OPTIONS header limit, matters only for push-to-registry, which this workflow does not use. The pin, 1e69f48 (v4.2.2), is a commit SHA and matches node-workflows. The two step comments that suggested verify commands now point to the README's verification section instead. Both commands lacked the signer identity flags a reusable-workflow signature needs, so neither could pass for a real release. Closes lfreleng-actions#49 Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
askb
approved these changes
Oct 9, 2026
ModeSevenIndustrialSolutions
merged commit Oct 9, 2026
5731628
into
lfreleng-actions:main
32 checks passed
This was referenced Oct 9, 2026
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.

Summary
Two related changes that modernise this lane's attestation support,
one commit each:
1. Verify commands (#98)
The README's "Verifying Release Artefacts" section documented two
commands that cannot pass for a genuine release. This PR replaces them,
adds a short table showing which certificate field binds what, and
states that cosign v3 or later is required. It mirrors
lfreleng-actions/node-workflows#158, which fixes node-workflows#149.
@refs/tags/<tag>(theproject's tag), but the certificate SAN names the reusable workflow at
the ref the caller pinned (usually a go-workflows commit SHA). The
new command anchors the SAN to
build-test-release.yaml@and binds theproject and tag through
--certificate-github-workflow-repository,--certificate-github-workflow-refand--certificate-github-workflow-trigger.--repoalone expects a signer in theproject repository, so it fails for attestations made inside a
reusable workflow (
gh attestation verify --helpsays the same). Thenew command adds
--signer-workflowand--source-ref.cosign-installer v4 produces.
releases matched
--signer-workflowas a prefix(GHSA-wjmr-j3rp-mh2g)
and
--source-refcase-insensitively(GHSA-4mq3-hpgx-9cx8).
reusable workflow. The section explains how to pin the caller's SHA:
--signer-digest <sha>for gh,--certificate-identitywith thefull
…@<sha>SAN for cosign.describe the calling run. The workflow's
repository/refinputscan build other source under the same values, so the section labels
them as caller fields and says they identify the packaged source when
both inputs stay empty, as in the examples.
One deviation from the issue's proposal: the gh command keeps
<binary>rather thanchecksums.txt. The attest job usessubject-path: 'dist/*', the release binaries;checksums.txthas noattestation of its own, so
gh attestation verify checksums.txtwouldfind nothing.
checksums.txtis covered by the cosign signatureinstead, and the existing
sha256sum --checkstep links the two.2. Migrate to
actions/attest(#49)actions/attest-build-provenancev4 is a thin wrapper that forwards itsinputs to
actions/attest, and GitHub directs new implementations toactions/attest. With no predicate supplied it emits SLSA buildprovenance by default, so the
attestjob swaps only theuses:line:actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2,a commit SHA (not a tag object), the same pin node-workflows uses.
subject-path, the job permissions (id-token: write,attestations: write) and the egress allow-list are unchanged; thewrapper already called
actions/attest, so the endpoints match.NODE_OPTIONS=--max-http-header-size,matters only for
push-to-registry, which this workflow does not use(see the correction comment on Chore: Migrate from attest-build-provenance to attest #49).
The same commit replaces two step comments in the workflow that
suggested verify commands (
gh attestation verifywithout--signer-workflow,cosign verify-blobwithout identity flags). Bothhad the defect #98 describes, so they now point to the README section
instead of repeating a command that could drift.
With this change, go-workflows attests through exactly the action that
produced the node-workflows proxy bundle below, which narrows the gap
between that evidence and a go-workflows release.
Evidence
No go-workflows release bundle exists yet
The one caller of
build-test-release.yaml,onap/multicloud-k8s, hasno releases and no release runs. No node-workflows Model A release
exists either. The go-workflows values below are therefore
inferred, not observed.
The proxy: a real node-workflows bundle from the same mechanism
node-workflows'
merge.yamlsigns withsigstore/cosign-installerv4.1.2 and keyless
cosign sign-blob --bundle, as this workflow does,and attests with
actions/attestv4.2.2, which this workflow nowcalls directly (it previously reached it through
actions/attest-build-provenancev4.2.2). Both run in a job ofthe reusable workflow. I verified against
onap-ui-common-1.1.2.tgzand its
.sigstore.jsonfromonap/sdc-onap-ui-common run 37592010404.
Certificate fields (
openssl x509 -inform DER -noout -text):https://github.com/lfreleng-actions/node-workflows/.github/workflows/merge.yaml@e40013bb325b9913138522598331b74efc3f6256workflow_dispatchonap/sdc-onap-ui-commonrefs/heads/master…/node-workflows/.github/workflows/merge.yaml@e40013bb…https://github.com/onap/sdc-onap-ui-commonhttps://github.com/onap/sdc-onap-ui-common/.github/workflows/gerrit-merge.yaml@refs/heads/masterResults (cosign v3.1.3, gh v2.102.0), with node-workflows
merge.yamlas the signer@refs/heads/masterexpected SAN value to match regex … got …merge.yaml@e40013bb…Verified OK--certificate-github-workflow-repository--certificate-github-workflow-ref--certificate-github-workflow-trigger pushgot "workflow_dispatch")invalid signaturebundle does not contain cert for verificationgh attestation verify <file> --repo <owner>/<repo>Sigstore verification failed--signer-workflow lfreleng-actions/node-workflows/.github/workflows/merge.yamlVerification succeeded!--source-refmatching / wrong--signer-workflow, or--repoof another repository--signer-digest e40013bb…/ all-zero SHAexpected BuildSignerDigest …--certificate-identity …merge.yaml@e40013bb…/ regexp ending@0000…$Inferred go-workflows values
Both
examples/build-test-release/*.yamlcallers trigger onpushoftags only, so a release certificate should carry SAN
…/go-workflows/.github/workflows/build-test-release.yaml@<pinned ref>,Workflow Trigger
push, and Workflow Ref / Source Repository Refrefs/tags/<tag>. The first real release (for exampleonap/multicloud-k8s) can confirm this by running the documentedcommands against a binary,
checksums.txtandchecksums.txt.sigstore.json, plus one negative run with a different--certificate-github-workflow-repository.Acceptance criterion status
#98 asks for the documented commands to verify a real go-workflows
release bundle and reject one from another repository or tag. That
holds for the shared signing mechanism, using the node-workflows
bundle above, but cannot yet hold for a go-workflows bundle because
none exists. This PR fixes guidance that is demonstrably wrong now,
rather than leaving it in place until a first release. If maintainers
prefer to keep #98 open until that confirmation, drop
Closesinfavour of
Refsbefore merging.Validation
prek run --files README.md: all hooks pass (markdownlint,write-good, codespell, reuse; gitlint at commit)
markdown-table-fixer lint README.md: no issuesaislop-gate.sh upstream/main: cleanprek run --files .github/workflows/build-test-release.yaml: allhooks pass (yamllint, actionlint, zizmor, workflow validators)
zizmor --persona auditor .github/workflows/build-test-release.yaml:no findings
Closes #98
Closes #49