Skip to content

revert: remove release-please + PR title lint automation#60

Merged
DataGomes merged 1 commit into
mainfrom
revert/release-please-automation
May 18, 2026
Merged

revert: remove release-please + PR title lint automation#60
DataGomes merged 1 commit into
mainfrom
revert/release-please-automation

Conversation

@DataGomes
Copy link
Copy Markdown
Contributor

Summary

Reverts the release-please and PR title lint workflows added in PR #59.

Why

OpenSSF's Best Practices Working Group explicitly recommends keeping "Allow GitHub Actions to create and approve pull requests" disabled. release-please requires that setting enabled to function, creating a tension between automation convenience and security best practice.

Recent supply-chain attacks reinforce the concern:

For a published Python package on PyPI with real users, the marginal benefit of release-please (auto-opens Release PRs so you don't forget to release) doesn't justify the marginal increase in third-party-action attack surface running on every push to main with contents: write permission.

This also better aligns with awslabs conventions — peer repos like awslabs/mcp, aws-lambda-powertools-python, automated-security-helper, multi-agent-orchestrator don't use release-please.

What this removes

  • `.github/workflows/release-please.yml`
  • `.github/workflows/lint-pr-title.yml`
  • `release-please-config.json`
  • `.release-please-manifest.json`

What this keeps (independent wins)

Release flow after merge

Returns to manual `make release` / `make release-minor` / `make release-major` — the same flow used successfully for v0.3.5. AGENTS.md restored to describe this.

Post-merge cleanup

  • Stale branch `release-please--branches--main` on origin (left over from the failed bot run) — will be deleted as part of the post-merge cleanup
  • Branch protection ruleset on main has already been deleted by the maintainer

Drops the release-please bot and the PR title lint workflow added in
PR #59. They were experimental and don't match the awslabs convention
(none of awslabs/mcp, aws-lambda-powertools-python, automated-security-helper,
multi-agent-orchestrator use release-please). Removing reduces
third-party action attack surface (release-please-action@v4 and
amannn/action-semantic-pull-request@v5 both had contents:write +
pull-requests:write permissions running on every push to main / every
PR), and removes infrastructure that wasn't being used: the
release-please run on PR #58's merge failed because the org-level
"Allow GitHub Actions to create and approve pull requests" setting is
disabled (correctly disabled for security).

Releases revert to the manual `make release` flow that we successfully
used to ship v0.3.5. AGENTS.md restored to describe that flow.

Kept from the prior work (independent wins, not release-please-specific):

- setuptools-scm migration (PR #56): version still derived from git tags
- SETUPTOOLS_SCM_PRETEND_VERSION_FOR_* in publish.yml (PR #57): still
  needed to force tag version through dirty-tree builds

Removes:
  .github/workflows/release-please.yml
  .github/workflows/lint-pr-title.yml
  release-please-config.json
  .release-please-manifest.json

Post-merge cleanup (manual via web UI):

1. Delete the "main protection" branch ruleset on
   Settings → Rules → Rulesets — otherwise it blocks all future PRs
   waiting for the `lint` check that no longer exists.
2. Delete the stale release-please--branches--main branch on origin
   left over from the failed bot run: git push origin --delete release-please--branches--main
@DataGomes DataGomes merged commit 9b01f46 into main May 18, 2026
4 checks passed
@DataGomes DataGomes deleted the revert/release-please-automation branch May 18, 2026 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant