Automate verified content updates - #93
Merged
Merged
Conversation
✅ Deploy Preview for powershellorg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request updates the GitHub Actions automation workflows for podcast sync, meetup sync, and community stats updates to create PRs using a dedicated GitHub App token, and adds a new workflow that auto-merges only those automation PRs after the “Build Hugo Site” workflow succeeds.
Changes:
- Replace direct
GITHUB_TOKENwrite permissions in the three sync/update workflows with a GitHub App installation token used only for PR creation. - Add a new
workflow_run-triggered merger workflow that merges only specific automation branches after a successful “Build Hugo Site” run. - Add author/branch/base/head-sha validation gates before merging.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/podcast-sync.yml |
Switch PR creation to use a GitHub App token; reduce default workflow permissions. |
.github/workflows/meetup-sync.yml |
Switch PR creation to use a GitHub App token; reduce default workflow permissions. |
.github/workflows/community-stats.yml |
Switch PR creation to use a GitHub App token; reduce default workflow permissions. |
.github/workflows/merge-automation-prs.yml |
Add privileged post-build merger gated on workflow_run success and automation-branch/app-bot verification. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Build Hugo SitesucceedsSecurity
The merger never checks out pull-request code. It accepts only the three fixed automation branches, same-repository PRs, and the GitHub App bot as author.
Verification
origin/main