Skip to content

ci: publish the release when release-please cuts it - #42

Merged
ia-mews merged 1 commit into
mainfrom
noticket-auto-release
Nov 24, 2026
Merged

ia-mews merged 1 commit into
mainfrom
noticket-auto-release

Conversation

@ia-mews

@ia-mews ia-mews commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Related Issue

None.

Description

Merging the release PR tags vX.Y.Z and creates the GitHub Release, but the signed artifacts were only attached once someone dispatched release.yml against the tag. Until then the Release has no assets and the Terraform Registry cannot index it. The extra step adds no review: the release PR is already the approval of the version and changelog, so a forgotten dispatch only delays a release that was already approved.

release-please now calls release.yml as a reusable workflow, with the tag it has just cut, when its run reports release_created. Calling it from the same run avoids relying on a tag or release event to start another workflow. workflow_dispatch stays on release.yml for republishing a tag by hand. CONTRIBUTING.md and CLAUDE.md describe the new flow.

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Reverting this commit restores the manual dispatch step; published releases are unaffected.

Changes to Security Controls

The GPG_PRIVATE_KEY and PASSPHRASE secrets are now passed (secrets: inherit) to the publish job of the push-to-main release-please workflow. That job runs only when release-please created a release in that run. Before, the same secrets were reachable by anyone able to dispatch release.yml. Access control on the release itself is unchanged: a release still needs a merged release PR, which branch protection gates.

@ia-mews
ia-mews requested a review from moxly November 24, 2026 11:07

@moxly moxly left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Risk Assessment

Score: 6/10 — medium

The new reusable-workflow reference is invalid, which prevents the release-please workflow from running and stops automated release creation and publishing. The impact is confined to the release pipeline; the provider runtime is unchanged.

Review Summary

Verdict: REQUEST_CHANGES
1 critical; 1 advisory nit.

The tag input, checkout fallback for manual dispatch, and signing permissions are consistent with the intended flow, but the workflow reference needs correcting before merge.

Threat model review

[nit] threat-model.xml: missing. Atlas service: no — there is no root Atlas app manifest, Atlas app caller, or Terraform configuration under infra/. The newly automated signing-secret handoff warrants documenting the release pipeline's trust boundaries.

Suggested follow-up: comment @moxly /threat-model-assistant on this PR to generate the model, then review the resulting change. This documentation follow-up is advisory and does not affect the risk score.

What I checked

Checked

  • Read all four changed files' diffs and both complete release workflows.
  • Checked release-please root-package configuration and tag propagation into checkout.
  • Checked inherited signing secrets, publishing permissions, and manual-dispatch fallback.
  • Compared the PR body with the template and the described automation changes.
  • Checked threat-model presence and Atlas service classification.
Fix All — prompt for AI agent

Fix the following issue in this PR:

  1. In .github/workflows/release-please.yml (line 49), replace $/.github/workflows/release.yml with ./.github/workflows/release.yml so GitHub accepts the local reusable-workflow call and the release pipeline can run.

After all changes, run the project's linter/formatter and validate the GitHub Actions workflow syntax.


Open this review run in Navigator

Comment thread .github/workflows/release-please.yml Resolved
@ia-mews
ia-mews requested a review from moxly November 24, 2026 11:11

@moxly moxly left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Risk Assessment

Score: 1/10 — low

The previous syntax concern was incorrect: GitHub supports the $/ self-repository form for reusable workflows. The tag handoff, inherited signing secrets, and publishing permissions are consistent with the intended release flow; no production hazard remains identified.

Review Summary

Verdict: APPROVE
Re-review scoped to changes since commit c66a59a; the analysis source falls back to the full PR diff because the range since the last review contains no changed file.

0 critical, 0 warnings; 1 advisory nit. Prior code findings: 1 resolved — 0 fixed, 1 dismissed; 0 carried forward. No new inline findings.

Previous finding withdrawn

The reference at .github/workflows/release-please.yml:49 is valid and needs no change. I accept the author's correction and withdraw the previous blocking finding. Independent corroboration appears in actionlint #732 and the reusable-workflow confirmation in actionlint #711: GitHub accepts this syntax, while released actionlint versions can reject it because support is missing.

Threat model review

[nit] threat-model.xml: missing. Atlas service: no — no root Atlas app manifest, Atlas app caller, or Terraform files under infra/ were found. The signing-secret handoff remains an advisory documentation follow-up, not a production defect.

Suggested follow-up: comment @moxly /threat-model-assistant on this PR to generate the model, then review the resulting change. This follow-up does not affect the risk score.

What I checked

Checked

  • Read all four changed-file diffs and both complete release workflows.
  • Verified root-package release configuration, tag propagation, and manual-dispatch checkout fallback.
  • Checked publishing permissions and inherited signing-secret usage.
  • Corroborated support for $/ reusable-workflow references through actionlint's support proposal and independent reusable-workflow report.
  • Checked threat-model presence and Atlas service classification.

Open this review run in Navigator

@ia-mews
ia-mews marked this pull request as ready for review November 24, 2026 11:15
@ia-mews
ia-mews requested a review from a team as a code owner November 24, 2026 11:15
@ia-mews
ia-mews enabled auto-merge (squash) November 24, 2026 11:15
@ia-mews
ia-mews merged commit 3a1ee03 into main Nov 24, 2026
13 checks passed
@ia-mews
ia-mews deleted the noticket-auto-release branch November 24, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants