Skip to content

chore(release): authenticate git pushes with deploy key#5

Open
alexb-splunk wants to merge 1 commit into
mainfrom
codex/release-deploy-key
Open

chore(release): authenticate git pushes with deploy key#5
alexb-splunk wants to merge 1 commit into
mainfrom
codex/release-deploy-key

Conversation

@alexb-splunk

@alexb-splunk alexb-splunk commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • configure the semantic-release checkout to use the protected RELEASE_DEPLOY_KEY environment secret
  • keep GH_TOKEN for GitHub API operations while using SSH for release commit and tag pushes
  • avoid exposing the deploy key to the preliminary release-check job
  • exclude non-versioning Conventional Commit types from changelog output while preserving release-affecting and breaking commits

Validation

  • git diff --check
  • parsed pyproject.toml with Python tomllib
  • validated changelog exclusion patterns against bumping, non-bumping, and breaking commit examples
  • loaded the semantic-release configuration in no-operation mode
  • parsed the GitHub Actions workflow as YAML
  • verified actions/checkout@v7 supports the ssh-key input
  • uv run tox -e lint,format

Release procedure

The Main ruleset now allows Deploy keys to bypass with Always allow. Merging this PR will trigger a fresh release workflow; approve the pypi environment deployment to publish v1.1.0.

The previously failed workflow should not be rerun because it uses the old workflow definition.

@alexb-splunk alexb-splunk marked this pull request as ready for review July 8, 2026 23:50
@alexb-splunk alexb-splunk force-pushed the codex/release-deploy-key branch from c900dbb to 5f69e3d Compare July 8, 2026 23:57
@alexb-splunk alexb-splunk changed the title fix(release): authenticate git pushes with deploy key chore(release): authenticate git pushes with deploy key Jul 8, 2026
Use the protected pypi environment's SSH key for release commits and tags while retaining GITHUB_TOKEN for GitHub release API operations. Keep changelog entries focused on commits that affect versioning.
@alexb-splunk alexb-splunk force-pushed the codex/release-deploy-key branch from 5f69e3d to 89d8bf0 Compare July 9, 2026 00:15
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