Skip to content

ci(automerge): require the deploy-bot app identity - #18

Merged
emkraan-deploy-bot[bot] merged 1 commit into
mainfrom
ci/automerge-require-deploy-bot
Sep 23, 2026
Merged

emkraan-deploy-bot[bot] merged 1 commit into
mainfrom
ci/automerge-require-deploy-bot

Conversation

@cmarko89

Copy link
Copy Markdown
Contributor

Summary (DRAFT: merge after Emkraan/ha-shared-workflows#15)

Makes app-client-id / app-private-key required in reusable-automerge.yml, and this repo's own caller passes them. Every fleet repo now merges as emkraan-deploy-bot, so a caller can no longer drift back to GITHUB_TOKEN.

GITHUB_TOKEN stays for two things: reading the check rollup (the App has no checks permission) and retrying PRs that touch .github/workflows/**. The App is deliberately not given workflows: write: its key is an org secret visible to every repo, so that permission would let any repo's workflow rewrite CI org-wide.

Held as a draft because ha-shared-workflows' main caller does not pass the App yet. Its #15 is stuck in the merge queue, and requiring the input now would make that repo's sweep and workflow_run events fail.

Every repo now merges as emkraan-deploy-bot, so the reusable workflow requires app-client-id and app-private-key and no caller can drift back to GITHUB_TOKEN. GITHUB_TOKEN stays for the rollup read and the workflow-file-PR retry; the App is deliberately not given workflows:write.
@cmarko89
cmarko89 marked this pull request as ready for review September 23, 2026 16:01
@emkraan-deploy-bot
emkraan-deploy-bot Bot merged commit 52bb56c into main Sep 23, 2026
3 checks passed
@emkraan-deploy-bot
emkraan-deploy-bot Bot deleted the ci/automerge-require-deploy-bot branch September 23, 2026 16:01
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