Repository navigation
ci: publish-image pushes, tags and attests the image for a member release tag (060 3.3, workflow) - #498
Conversation
AI review (findings)Reviewing the diff for bugs, security problems, and inconsistencies.
The manifest job copies the per-platform SBOMs into for arch in amd64 arm64; do
cp "$RUNNER_TEMP/image-evidence/rustev-serve-linux-$arch.oci.tar.cdx.json" "$RUNNER_TEMP/artifacts/sbom/"
doneAfter the sbom-path: ${{ runner.temp }}/release/rustev-serve-linux-amd64.oci.tar.cdx.json
sbom-path: ${{ runner.temp }}/release/rustev-serve-linux-arm64.oci.tar.cdx.jsonThe Other checks passed
{"head": "128e3ae9b8dd3cd356b5e804f412a90a7121cd7b", "verdict": "findings", "findings": [{"path": ".github/workflows/release.yml", "line": 962, "summary": "Both attest-sbom steps reference the SBOM files at ${{ runner.temp }}/release/rustev-serve-linux-{amd64,arm64}.oci.tar.cdx.json, but the manifest job places them under $RUNNER_TEMP/artifacts/sbom/, so after the release artifact is downloaded they land at ${{ runner.temp }}/release/sbom/rustev-serve-linux-{amd64,arm64}.oci.tar.cdx.json; the missing 'sbom/' path segment means the files will not be found and attestation will fail on every image push."}]}Subject: 4d1e758...128e3ae, diff digest b9629f54f0bfc2483984d67e957422594c458c6d46febe8cbafcdaf35164a155, 1 call(s). An AI comment is not an approval. |
128e3ae to
fafa869
Compare
AI review (findings)Looking at the two changed files, I'll review the workflow logic, path handling, and security properties of the new Finding: In # .github/workflows/release.yml, ~line 904
state=$(cargo run --quiet --locked -p rustev-release -- image-tag "$RUNNER_TEMP/release" "$RUNNER_TEMP/index.json")# ~line 915
oras manifest push --media-type application/vnd.oci.image.index.v1+json "$IMAGE:$VERSION" "$RUNNER_TEMP/index.json"No step in No other concrete defects found: the oras 1.3.6 tarball is verified by pinned SHA-256 before execution; all GitHub Actions are pinned to commit SHAs; {"head": "fafa869f39ff189d082f91ed1b3beac41cdbaa3b", "verdict": "findings", "findings": [{"path": ".github/workflows/release.yml", "line": 904, "summary": "publish-image references $RUNNER_TEMP/index.json in both `rustev-release image-tag` and `oras manifest push`, but no step creates or downloads a file at that path; the index likely lands at $RUNNER_TEMP/release/index.json inside the downloaded release artifact, so both uses will fail on every real image push."}]}Subject: 4d1e758...fafa869, diff digest 36bef31e6aef8c5c88838cc99f4385759dd770083c92e55861f43440fcc88098, 1 call(s). An AI comment is not an approval. |
4d1e758 to
6b77919
Compare
fafa869 to
4b34bac
Compare
AI review (findings)Reviewing the two changed files for concrete defects.
1. The new step ("The registry holds the manifest's image, and its attestations verify") uses 2.
No defects found. The increment notes are internally consistent with the workflow changes. {"head": "4b34bac11eb8fb1d7211e53d995a6f1b51003437", "verdict": "findings", "findings": [{"path": ".github/workflows/release.yml", "line": 1049, "summary": "$TAG is not defined in the verify-release job env or in the tag job outputs, so --source-ref \"refs/tags/$TAG\" expands to an empty tag name in both gh attestation verify calls, invalidating the source-ref filter."},{"path": ".github/workflows/release.yml", "line": 856, "summary": "publish-image's if condition omits needs.approve.result == 'success', so the image can be pushed even if the approve job fails, contrary to the spec's stated ordering requirement."}]}Subject: 6b77919...4b34bac, diff digest 59cfc8b70c8ec98b5b16380d8af601d89d80447924a2ef867df1d94fc5c5afd8, 1 call(s). An AI comment is not an approval. |
4b34bac to
e16fcb3
Compare
AI review (no-findings)Reviewing the diff across
The shell logic correctly sets
Adding
oras install – integrity
Push integrity checks
SBOM attestation paths The
The updated condition correctly gates on
Spec document The increment 4c narrative is internally consistent with the workflow changes. The ratification note is an owner act enforced outside review; the text does not contradict any governance rule visible in the supplied authority documents. No concrete defects found. {"head": "e16fcb38d568e68e477b98497a9d26f509408e5f", "verdict": "no-findings", "findings": []}Subject: 6b77919...e16fcb3, diff digest 387097d59b5c80a3b73571bcd301f99598e46f2370af6078ea75ca11f4f82442, 1 call(s). An AI comment is not an approval. |
6b77919 to
c6f7307
Compare
e16fcb3 to
73d45fb
Compare
AI review (findings)Reviewing the diff for bugs, security issues, and inconsistencies.
The needs: [tag, manifest, approve, image, image-checks, publish-crates, publish-npm]But the if: >-
!cancelled() && needs.tag.outputs.image == 'true' && needs.manifest.result == 'success' &&
needs.approve.result == 'success' && needs.image-checks.result == 'success' &&
needs.publish-npm.result == 'success'If No other concrete defects were found. The oras pinning (SHA-256 on the tarball), the {"head": "73d45fbc054c0a4ebb5d20fbeb5ece020748f5e2", "verdict": "findings", "findings": [{"path": ".github/workflows/release.yml", "line": 856, "summary": "`publish-image`'s `if` condition does not require `needs.publish-crates.result == 'success'`, so the image can be pushed to the registry even when crates publication has failed, leaving the release in a partially-published state that contradicts the layered release model."}]}Subject: c6f7307...73d45fb, diff digest 397c41da78936754578be958e7da6048c695e7856757dc90aaef33db7a5c5751, 1 call(s). An AI comment is not an approval. |
c6f7307 to
0b88a35
Compare
73d45fb to
c3e04ec
Compare
AI review (findings)Reviewing the two changed files for bugs, security problems, and inconsistencies against the governance context.
The needs: [tag, manifest, approve, image, image-checks, publish-crates, publish-npm]
if: >-
!cancelled() && needs.tag.outputs.image == 'true' && needs.manifest.result == 'success' &&
needs.approve.result == 'success' && needs.image-checks.result == 'success' &&
needs.publish-npm.result == 'success'With
The increment 4c prose is internally consistent with the workflow changes and correctly describes the gating logic. No contradictions with the constitution or contract are present in the diff. {"head": "c3e04ec95f5b8cee96e8e44162bad6524cccba12", "verdict": "findings", "findings": [{"path": ".github/workflows/release.yml", "line": 855, "summary": "publish-image's `if` condition does not check needs.publish-crates.result, so a crates publication failure does not prevent the image from being pushed and attested, leaving the release in an inconsistent state."}]}Subject: 0b88a35...c3e04ec, diff digest 397c41da78936754578be958e7da6048c695e7856757dc90aaef33db7a5c5751, 1 call(s). An AI comment is not an approval. |
0b88a35 to
4243807
Compare
c3e04ec to
60367c9
Compare
4243807 to
b0aa35d
Compare
60367c9 to
5984967
Compare
AI review (findings)Reviewing the two changed files for concrete defects.
The The step "The tag is absent or already the run's index; another fails (060 3.3.3)" calls The The The oras SHA-256 No injection risks found in the shell scripts;
The increment 4c narrative matches the workflow changes. No inconsistencies between the spec text and the workflow found beyond the authentication ordering issue already noted. {"head": "5984967c8ea4eb01f788bad769acce18f5f2e943", "verdict": "findings", "findings": [{"path": ".github/workflows/release.yml", "line": 896, "summary": "The `image-tag` state check queries the private ghcr.io registry before any `oras login`; the credential step runs only conditionally in the next step (guarded by state == 'absent'), so on the first push—when the package is private per the spec—the state check will fail with 401 instead of returning 'absent', preventing the push from ever proceeding."}]}Subject: b0aa35d...5984967, diff digest 397c41da78936754578be958e7da6048c695e7856757dc90aaef33db7a5c5751, 1 call(s). An AI comment is not an approval. |
AI review (findings)Reviewing the diff for bugs, security issues, and inconsistencies.
|
1470e89 to
b25e8f4
Compare
AI review (findings)Reviewing the two changed files for concrete defects.
The needs: [tag, manifest, approve, image, image-checks, publish-crates, publish-npm]
if: >-
!cancelled() && needs.tag.outputs.image == 'true' && needs.manifest.result == 'success' &&
needs.approve.result == 'success' && needs.image-checks.result == 'success' &&
needs.publish-npm.result == 'success'
No other concrete defects are supported by the evidence in the diff. {"head": "b25e8f4bb26af97507c8127fe3e997677a8a4883", "verdict": "findings", "findings": [{"path": ".github/workflows/release.yml", "line": 858, "summary": "publish-image lists publish-crates in needs but does not check needs.publish-crates.result == 'success' in the if condition, so a failed crates publication does not block the image push, violating the layer-7-after-layer-6 ordering."}]}Subject: 294c40d...b25e8f4, diff digest 4f32275859c0c4f5f0b29b3fdc060f455f016ecbf6215102fbb7a2c81a321e68, 1 call(s). An AI comment is not an approval. |
a29eceb to
07e58c4
Compare
AI review (findings)Reviewing the two changed files for bugs, security problems, and inconsistencies.
The new
The new step added to - name: The registry holds the manifest's image, and its attestations verify (060 3.4.2)
if: needs.tag.outputs.image == 'true'references To fix: add No other concrete defects were found. The spec prose in {"head": "07e58c4e1cbedff14047c5d95ca581ca4bbb8a85", "verdict": "findings", "findings": [{"path": ".github/workflows/release.yml", "line": 1041, "summary": "The verify-release step conditioned on `needs.tag.outputs.image == 'true'` is permanently skipped because `tag` is not listed in verify-release's `needs` ([github-release] only), so the output resolves to an empty string and the image registry/attestation checks never run."}]}Subject: 294c40d...07e58c4, diff digest 47a48475d6b68d593aea32c7e94b28db0dec0b7b5a79e324fcdc5949c9d99101, 1 call(s). An AI comment is not an approval. |
|
Review note on 07e58c4: the |
07e58c4 to
8963aca
Compare
AI review (findings)Reviewing the two changed files for bugs, security problems, and inconsistencies.
The The new step added to The fix is to add Everything else reviewed:
Increment 4c prose is consistent with the workflow changes, including the ratification note dated 2026-11-03 (A-76). The text matches what the workflow does, except it does not mention the {"head": "8963aca53bc749b2221539d00777690f0b511194", "verdict": "findings", "findings": [{"path": ".github/workflows/release.yml", "line": 1040, "summary": "The new image-verification step in `verify-release` conditions on `needs.tag.outputs.image == 'true'`, but `tag` is not in `verify-release`'s `needs` list, so the output is inaccessible and the step is permanently skipped."}]}Subject: 185713b...8963aca, diff digest 05e56ed1ea0fb84a4f9ca5dad567ec2a34fa47f7fff4e0f9852270936f616d60, 1 call(s). An AI comment is not an approval. |
8963aca to
8244bff
Compare
AI review (findings)Reviewing the two changed files:
The three-branch decision tree (
Adding
For a non-candidate release the new condition requires both
The diff does not update {"head": "8244bffd015140bc0dc6d80083696850efbfaf11", "verdict": "findings", "findings": [{"path": ".github/workflows/release.yml", "line": 1042, "summary": "The verify-release job's new image-verification step conditions on needs.tag.outputs.image, but the diff does not add tag to verify-release's needs list; if tag is not a direct dependency, the output evaluates to empty string and the step never executes, silently skipping the 060 3.4.2 registry check on every image push."}]}Subject: b8a8cd8...8244bff, diff digest b037351035d56310faa34b6d95f71a1b75a3089aa50546f754606c5f39fc701d, 1 call(s). An AI comment is not an approval. |
|
Review note on the AI finding at Not a defect: |
…sts it, only for a member release tag (060 3.3, 3.4.2, workflow)
8244bff to
1aa9ad8
Compare
AI review (findings)Review of PR 1aa9ad8This PR implements increment 4c of spec 060: wiring the Finding 1 —
|
|
Review note on the two AI findings at 1aa9ad8 (
The restack onto #501 left this workflow's diff byte-identical to the reviewed 8244bff. |
…0 3.1) [held for owner decision] (#499) Spec 060 increment 5 (3.1): membership. DRAFT, DO NOT MERGE until the owner decides 060 decision 2 and the other prerequisites below hold. - `tools/rustev-release/release-set.json` names the image under `image` (`ghcr.io/statecrafting/rustev-serve`, `linux/amd64`, `linux/arm64`) and drops its `absent` entry. This is the switch that makes the next release name the image in its manifest, gate its scan through `image-exceptions.json`, push and attest it (`publish-image`), verify it and qualify it. - Tests that are not about the image (`tests/family.rs`, `tests/tagged.rs` fixtures) set `image` to none; `tests/npm.rs` and `tests/image.rs` no longer read an image absence from the committed set. Prerequisites before merging: 1. The base move to `gcr.io/distroless/cc-debian13:nonroot` (#502), decided by the owner on 2026-11-03. 2. The owner's ruling on each of the 44 findings on that base (one decision row and one `image-exceptions.json` entry per (id, package), at most 90 days). With the image a member, any uncovered finding fails `image-checks`. 3. The image qualification of 060 3.4.3 as amended (#500 harness, #501 workflow). 4. Spec 042 is complete (#477), so 3.1.1's condition holds. The owner makes the ghcr package public after the first push. Stacked on #498 (on #496, #494). Checks: `cargo test -p rustev-release --locked` passed (all binaries); `make gate` passed.
Spec 060 increment 4c (3.3, 3.4.2): the
publish-imagejob and image verification inrelease.yml. Workflow-only (plus 060's record); stacked on #496 (tooling:image-tag,verify-image, tolerant workflow tests) on #494.tag: a new step outputsimage_member(release set names the image and the tag is not a candidate) andimage(also a pushed release tag), and otherwise emits a notice naming whypublish-imageis skipped (absent from the release set / candidate / dry run).manifest: also needsimage-checks; with the image a member it downloadsimage-release-*(archives + sidecars) and copies the two image SBOMs fromimage-evidence, sorun-manifestnames the image.image-checksgates the manifest only then.publish-image(new, afterpublish-npm): only job withpackages: write(besidecontents: read,id-token: write,attestations: write); runs only onneeds.tag.outputs.image == 'true'. Installs oras 1.3.6 pinned by tarball SHA-256; checks each archive against its sidecar;rustev-release image-tagfails on a tag naming another index, skips the push when it already names the run's index; otherwiseoras cp --from-oci-layout <archive>@<digest> <repo>per platform (no tag), thenoras manifest pushof the manifest's index bytes underX.Y.Z, then requires the tag to name that index. Attests the index (actions/attest-build-provenancev4.2.2) and each platform with its SBOM (actions/attest-sbomv4.1.0, pinned by commit),push-to-registry: true.github-releasefollowspublish-imagewhenever the run pushes the image.verify-release:packages: read; when the run pushed the image,rustev-release verify-imageandgh attestation verify oci://...(provenance on the index, CycloneDX SBOM on each platform) against the store.latesttag; nothing changes while the release set lists the image as absent.Needs the owner's
statecraft-review-exceptionapproval (workflow change).Limitation: the oras steps have not run against ghcr.io (no push is allowed here); a dry run skips
publish-image. The first release with the image runs them.Checks:
actionlintpassed;cargo test -p rustev-release --locked --test candidate --test release_workflowpassed (includingpublish_image_runs_only_for_a_member_release_tag_after_npm, which now exercises this job);make gatepassed.Review notes (round 1):
$TAGin verify-release is defined: the job'senv:(unchanged, outside the diff) setsREPO: ${{ github.repository }}andTAG: ${{ github.ref_name }}, which the existing attestation step already uses.publish-image'sifnow also requiresneeds.approve.result == 'success'. It was implied before, sincepublish-npmneedspublish-crates, which needsapprove; now it is explicit.