← Back to Pull requests

chore: release-please and shared release workflows #7

Closed
unknown closed this pull request without merging on Oct 13, 2026 16:56 UTC
View on GitHub
unknown unknown commented on Oct 13, 2026 16:12 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.

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.5.1. That is releases/latest (v0.5.1, a final release). Its commit 7f0a55d is an ancestor of main, so no bootstrap-sha is needed. 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.
  • 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 (sha256 9e140c97…). Both contain /data.json, /.manifest and the two /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-apt-versions-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; this repo's releases up to 0.2.5 used unprefixed tags (0.1.36 … 0.2.5), and every release since v0.3.1 is v-prefixed.
  • 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 every GitHub release (all releases here, v0.5.1 included, carry it). The shared workflow attaches nothing. Releases are created by release-please, or by cut-prerelease for rcs. This difference needs a human decision: does anything consume the release asset? 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 (3/3).

  • The config has no drift from the shared defaults (same jq comparison the shared release-please job uses).

  • Every caller, ci.yml and the config are byte-identical to the already-reviewed plugin-file-attestation-policies#4; only the manifest seed differs.

  • Every commit's author and committer is ccf-lisa[bot].
  • The README covers testing and local bundling, 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: 555 lines (+416 / -139) across 6 files Reviewer: gusfcarvalho Review duration: 44m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 555 lines diff across 6 files
    0.48
    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.378
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #7"
    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: 48.1% (MEDIUM) · Higher = larger blast radius
    48.1%
    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% · Safe to merge
    19%