← Back to Pull requests

chore: release-please and shared release workflows #15

Closed
unknown closed this pull request without merging on Oct 13, 2026 16:55 UTC
View on GitHub
unknown unknown commented on Oct 13, 2026 16:23 UTC
Author

Why

This repo joins the release train (W3). Releases now come from release-please PRs and the shared release-policies.yml, instead of a tag push running a local workflow. Release candidates come from the cut-prerelease workflow. The default branch is main.

Merge order

This PR must be merged only after #10 has been merged with a merge commit (not squash or rebase). The seed below is 0.7.3, and the v0.7.1 to v0.7.3 tags were cut on #10's branch imiell-reponame, not on main. A merge commit makes v0.7.3 an ancestor of main; without it release-please cannot find the last release and would walk the whole history.

What

  • release-please-config.json: copied from mock-plugin-policies-1. Its top-level keys equal release-please/defaults.json at workflows v1.5.2. packages: {".": {"release-type": "simple"}}.

  • .release-please-manifest.json is seeded at 0.7.3, with no bootstrap-sha. That is releases/latest (v0.7.3, a final release, commit 5c9f85f). The seed was decided by the maintainer on 2026-10-13. I checked that v0.7.3 is an ancestor of origin/imiell-reponame (head e2c17ae) and that imiell-reponame is 0 commits behind main, so once #10 lands with a merge commit, v0.7.3 is reachable from main. Today it is not an ancestor of main. There is no version.txt; release-please adds it in the first release PR.

  • New callers, copied from mock-plugin-policies-1 with every pin at 6e7fc9c04b59c7d1117938da397f8a6f8df036ab # v1.5.2:

  • - release-please.yml runs on push to main;
    - release.yml runs on release: published and calls release-policies.yml with opa-version: "1.14.1" and directory: policies;
    - preview.yml uses kind: policies with on-main: false, so only the preview label builds;
    - cut-prerelease.yml runs on workflow_dispatch.
  • ci.yml: the three pins move from v1.5.1 to v1.5.2. It already had release-checks. Nothing else changes.
  • The workflow files are identical to the ones in compliance-framework/plugin-file-attestation-policies#4, whose old workflow files were byte-identical to this repo's. Only the seed differs.

    Deleted files

  • .github/workflows/release.yml (the old one) ran on any tag push and called build-and-upload.yml. It is replaced by the new release.yml above.

  • .github/workflows/build-and-upload.yml ran opa build -b policies with OPA latest. It attached bundle.tar.gz to the GitHub release and ran gooci upload-single twice, once to :<tag> and once to :latest.
  • Artifact comparison (old workflow vs shared v1.5.2)

  • Bundle: still built from policies/ only. With OPA 1.14.1, opa build -b policies -o … (old) and opa build --bundle policies --output … (shared) give byte-identical tarballs. Both have sha256 9d077f28…, and both contain /data.json, /.manifest and the 52 /policies/*.rego files.

  • OPA version: the old workflow used latest at release time. The shared one pins 1.14.1, the agent's OPA.

  • OCI repo and upload: unchanged. The repo is ghcr.io/compliance-framework/plugin-github-repositories-policies, and the upload is still gooci upload-single of bundle.tar.gz, with gooci v0.0.7.

  • OCI tags:

  • - A final vX.Y.Z release gets :vX.Y.Z and :latest, as before. The bundle is now uploaded once and crane tag points :latest at the same manifest, so both tags share one digest. The old workflow uploaded twice and made two manifests.
    - Old: latest was skipped when github.event.release.prerelease was set. On a tag-push event that field is empty, so every tag, rc included, moved latest. New: whether latest moves is decided from the tag name, so vX.Y.Z-rcN leaves latest untouched.
    - Tags must now be vX.Y.Z[-rcN]. The old workflow accepted any tag name.
  • Previews (new): :pr-<n>, published only when a PR has the preview label. Previews never touch :latest.

  • GitHub release assets: the old workflow attached bundle.tar.gz to the GitHub release. The shared workflow attaches nothing. Releases are created by release-please, or by cut-prerelease for rcs. This is the known batch-1 difference; the agent pulls from OCI.
  • Verified locally

  • go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.12 is clean.

  • With OPA 1.14.1, opa build policies works, opa check policies is clean and opa test policies passes (134/134).

  • The config has no drift from the shared defaults. I compared its top-level keys with release-please/defaults.json at v1.5.2 using jq.

  • Every commit's author and committer is ccf-lisa[bot].
  • The README covers testing and make build, not releasing, so it is unchanged. The PR stays open until the batch's repo settings are applied, because the release environment holds the ccf-release-bot secrets.

    Task: W3-S2-T02 (local-dev/docs/release-automation/workstream-3-plugins-in-train.md)

    🤖 Generated with Claude Code

    Diff: 618 lines (+463 / -155) across 7 files Reviewer: gusfcarvalho Review duration: 32m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 618 lines diff across 7 files
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.385
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #15"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 50.2% (MEDIUM) · Higher = larger blast radius
    50.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.8% · Safe to merge
    19.8%