Skip to content

Restrict maintenance workflows to upstream repo#10102

Merged
ReubenBond merged 2 commits into
mainfrom
reubenbond/restrict-actions
May 14, 2026
Merged

Restrict maintenance workflows to upstream repo#10102
ReubenBond merged 2 commits into
mainfrom
reubenbond/restrict-actions

Conversation

@ReubenBond

@ReubenBond ReubenBond commented May 14, 2026

Copy link
Copy Markdown
Member

Problem

Write-capable maintenance workflows copied into forks can run outside the upstream repository. In particular, the API diff updater can create or update fork-local branches/PRs, and the stale issue/PR locker can act on fork issue trackers.

Solution

Add a job-level repository guard to the API diff and locker workflows so they only execute when github.repository is dotnet/orleans. This keeps the maintenance automation active in the upstream repo while skipping the jobs in forks.

Reviewer focus

Please confirm the scope is limited to maintenance workflows with repository/issue/PR write permissions and does not unintentionally disable contributor CI.

Microsoft Reviewers: Open in CodeFlow

ReubenBond and others added 2 commits May 14, 2026 11:13
Prevent write-capable maintenance workflows from running in forks by adding an upstream repository guard to their jobs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ReubenBond ReubenBond added this pull request to the merge queue May 14, 2026
Merged via the queue into main with commit 38b1e35 May 14, 2026
62 checks passed
@ReubenBond ReubenBond deleted the reubenbond/restrict-actions branch May 14, 2026 19:30
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant