Skip to content

Use release app for protected branch updates - #52

Merged
adriaandotcom merged 1 commit into
mainfrom
fix/release-app-authentication
Sep 16, 2026
Merged

adriaandotcom merged 1 commit into
mainfrom
fix/release-app-authentication

Conversation

@simple-analytics-ai

Copy link
Copy Markdown
Contributor

Summary

  • authenticate the release workflow with a short-lived GitHub App installation token
  • keep the default GitHub Actions token read-only and use the app token for the protected-branch push and GitHub release
  • attribute generated release commits to the release app bot

Setup required before merge

  • install the simpleanalytics-release app only on simpleanalytics/wordpress-plugin with Contents read/write
  • add the app to the organization ruleset bypass list with Always allow
  • add the repository variable RELEASE_APP_ID
  • add the repository secret RELEASE_APP_PRIVATE_KEY

Validation

  • actionlint .github/workflows/release.yml
  • git diff --check main...HEAD

This addresses the protected-branch failure in release run https://github.com/simpleanalytics/wordpress-plugin/actions/runs/35030881136/job/104589753054.

@adriaandotcom
adriaandotcom merged commit 5abdcf4 into main Sep 16, 2026
7 checks passed
@adriaandotcom
adriaandotcom deleted the fix/release-app-authentication branch September 16, 2026 12:31
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