Skip to content

ci: release automation follow-ups (self-pin push, remove deploy-key rotation reminder) - #645

Merged
MaddyMicrosoft merged 3 commits into
masterfrom
ci/release-automation-followups
Sep 14, 2026
Merged

MaddyMicrosoft merged 3 commits into
masterfrom
ci/release-automation-followups

Conversation

@MaddyMicrosoft

Copy link
Copy Markdown
Member

Summary

Two follow-ups to the release/rollback automation:

  1. Stop the self-pin job from trying to open its own PR, since the Azure org blocks GitHub Actions from creating pull requests.
  2. Remove the scheduled deploy-key rotation reminder workflow and move rotation to a manually tracked task.

Changes

Self-pin: push the branch, do not create the PR (release.yml, rollback.yml)

After a release or rollback, the self-pin job repoints this repo's own azure/login@<sha> references to the new release commit. It previously ran gh pr create, but the Azure org disables "Allow GitHub Actions to create and approve pull requests", so that call could never succeed.

  • The job now force-pushes the chore/pin-azure-login-* branch and prints a ::notice:: compare link for the releaser to open the PR with one click.
  • Dropped the now-unneeded pull-requests: write permission and the GH_TOKEN env from the step.
  • Renamed the step from "open PR" to "push branch" to match the new behaviour.

No behavioural change to how the branch itself is produced. Only the PR-creation attempt is removed.

Remove deploy-key-rotation-reminder.yml

The scheduled workflow that pinged a reminder to rotate RELEASE_DEPLOY_KEY is deleted. R

Why

  • The self-pin gh pr create step was dead code that logged a failure or a no-op on every release. Pushing the branch plus a compare link is the supported path in this org.
  • A tracked issue is simpler and has no secret dependency.

MaddyMicrosoft and others added 3 commits September 10, 2026 07:45
The Azure org permanently disables 'Allow GitHub Actions to create and approve
pull requests', so gh pr create failed every release with a misleading
'PR may already exist' fallback. Remove the doomed call and instead print a
::notice:: with the compare link so the releaser opens the PR in one click.
Also drop the now-unused pull-requests: write permission and GH_TOKEN env from
the self-pin jobs (they only use git via the deploy key), and rename the step
to 'push branch'.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Azure/login is public, so a GitHub issue reminder to rotate the release deploy
key is publicly visible. Post to a private Teams channel via a Power Automate
'Workflows' webhook (TEAMS_WEBHOOK_URL secret) instead. Needs no GitHub
permissions (empty permissions block, no GITHUB_TOKEN) - the webhook URL is the
only credential.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 14, 2026 03:17
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test September 14, 2026 03:17 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test September 14, 2026 03:17 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test September 14, 2026 03:17 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test September 14, 2026 03:17 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test September 14, 2026 03:17 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test September 14, 2026 03:17 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test September 14, 2026 03:17 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test September 14, 2026 03:17 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test September 14, 2026 03:17 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test September 14, 2026 03:17 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test September 14, 2026 03:17 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft marked this pull request as ready for review September 14, 2026 03:17

Copilot AI 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.

🟢 Approval recommended

The remaining findings are minor naming nits and do not block approval.

Pull request overview

Updates release and rollback self-pin automation to push branches with manual compare links, and removes the scheduled deploy-key reminder.

Changes:

  • Removes automated PR creation and unnecessary permissions.
  • Adds compare-link notices for manually opening PRs.
  • Deletes the deploy-key rotation reminder workflow.
File summaries
File Reviewed changes
.github/workflows/rollback.yml Pushes self-pin branches and provides a compare link; minor stale job-name nit remains.
.github/workflows/release.yml Applies the manual self-pin PR flow; minor stale job-name nit remains.
.github/workflows/deploy-key-rotation-reminder.yml Removes the scheduled rotation reminder workflow.
Review details

Suppressed comments (2)

.github/workflows/release.yml:196

  • This job is still identified as open-selfpin-pr, but it no longer opens a pull request; workflow run labels will therefore continue to promise behavior that the job does not perform. Please rename the job ID and update the remaining open-selfpin-pr reference in .github/dependabot.yml so the manual-PR flow is clear.
      - name: Bump azure/login self-references and push branch

.github/workflows/rollback.yml:126

  • This job is still identified as open-selfpin-pr, but it no longer opens a pull request; workflow run labels will therefore continue to promise behavior that the job does not perform. Please rename the job ID and update the remaining open-selfpin-pr reference in .github/dependabot.yml so the manual-PR flow is clear.
      - name: Roll back azure/login self-references and push branch
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@MaddyMicrosoft
MaddyMicrosoft merged commit 487024f into master Sep 14, 2026
22 checks passed
@MaddyMicrosoft
MaddyMicrosoft deleted the ci/release-automation-followups branch September 14, 2026 05:12
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.

3 participants