[RUN-4568] Add prepare-community-pr reusable workflow caller#46
Merged
Merged
Conversation
Adds the centralized workflow from rundeck/rundeck so that community PRs from forks can be securely run through full CI via an integration branch. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a repository-local GitHub Actions workflow that delegates to the centralized prepare-community-pr reusable workflow in rundeck/rundeck, enabling maintainers to prepare fork-based community PRs for internal CI via a label-triggered pull_request_target run.
Changes:
- Introduces
.github/workflows/prepare-community-pr.ymlas a lightweight caller workflow. - Triggers on
pull_request_targetlabel events and runs only whenprepare-community-pris applied. - Grants
contents: writeandpull-requests: writepermissions to support the called workflow’s branch/PR operations.
Comment on lines
+1
to
+2
| # Calls the centralized workflow from rundeck/rundeck. | ||
| # To add this to another repo, copy this file — no changes needed. |
jtobard
approved these changes
Jul 1, 2026
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
Adds the
prepare-community-prworkflow to this repo by calling the centralized reusable workflow inrundeck/rundeck.Tracks: https://pagerduty.atlassian.net/browse/RUN-4568
What this does
When a maintainer applies the
prepare-community-prlabel to a community PR (from a fork), this workflow:bot/prep-community-pr-<number>)Why
Community PRs from forks cannot access repository secrets directly. This is the secure pattern to run full CI on them without exposing secrets to untrusted code.
What changed
A single 15-line caller file:
.github/workflows/prepare-community-pr.ymlAll the actual logic lives in
rundeck/rundeckand is called viauses: rundeck/rundeck/.github/workflows/prepare-community-pr.yml@main.Post-merge step
Verify that this repo has access to reusable workflows from
rundeck/rundeck:Settings → Actions → General → Access → allow workflows from repos in the
rundeckorg.Made with Cursor