Skip to content

[RUN-4568] Add prepare-community-pr reusable workflow caller - #10

Merged
Jesus-Osuna-M merged 1 commit into
mainfrom
RUN-4568-prepare-community-pr
Sep 25, 2026
Merged

Jesus-Osuna-M merged 1 commit into
mainfrom
RUN-4568-prepare-community-pr

Conversation

@Jesus-Osuna-M

Copy link
Copy Markdown
Contributor

Summary

Adds .github/workflows/prepare-community-pr.yml, a thin caller for the centralized workflow in rundeck/rundeck. Copied verbatim from rundeck-plugins/git-plugin — the file's own comment states it is meant to be copied with no changes.

Why

Community PRs come from forks, so workflows that need repo secrets never run on them — such a PR can sit with no checks reported at all, leaving maintainers to compile and test it by hand.

Once a maintainer approves the PR and applies the prepare-community-pr label, the centralized workflow opens an integration branch plus PR so full CI runs against the contribution.

Rollout

Part of applying this across the rundeck-plugins org. Already present in git-plugin, nixy-step-plugins and vault-storage.

The prepare-community-pr label (color #2DDE7A) is being created in this repo alongside the PR — the workflow filters on github.event.label.name == 'prepare-community-pr' and cannot fire without it.

Notes on safety

The upstream reusable workflow documents its own security model: it refuses to check out the PR branch as the workspace root, validates that the PR number is numeric and the head is a 40-hex SHA, and requires at least one APPROVED review for the current head commit before doing anything.

🤖 Generated with Claude Code

Copied verbatim from rundeck-plugins/git-plugin. Calls the centralized
workflow in rundeck/rundeck, which opens an integration branch and PR so
that full CI — including jobs that need repo secrets — runs for approved
community PRs coming from forks.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Jesus-Osuna-M
Jesus-Osuna-M requested review from a team and a lite review from Copilot September 25, 2026 19:29

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.

Copilot review overview

🟡 Changes recommended

Pin the reusable workflow to an audited commit SHA instead of mutable @main.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

Adds a label-gated reusable workflow caller for preparing approved community pull requests.

Changes:

  • Adds .github/workflows/prepare-community-pr.yml.
  • Triggers the centralized Rundeck workflow with required write permissions.
File Description
.github/​workflows/​prepare-community-pr.yml Adds the centralized community PR preparation workflow caller.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

jobs:
prepare:
if: github.event.label.name == 'prepare-community-pr'
uses: rundeck/rundeck/.github/workflows/prepare-community-pr.yml@main
@Jesus-Osuna-M
Jesus-Osuna-M merged commit f706441 into main Sep 25, 2026
1 check passed
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