Skip to content

Prevent fork pull requests from running preview workflow - #21

Merged
erseco merged 1 commit into
mainfrom
security/block-fork-actions
Jul 24, 2026
Merged

Prevent fork pull requests from running preview workflow#21
erseco merged 1 commit into
mainfrom
security/block-fork-actions

Conversation

@erseco

@erseco erseco commented Jul 24, 2026

Copy link
Copy Markdown
Member

Summary

  • skip the playground preview job when a pull request originates from a fork
  • preserve previews for branches within this repository

Security rationale

The workflow has pull-request write permission. Restricting it to same-repository branches prevents external contributors from triggering a write-capable workflow.

@github-actions

Copy link
Copy Markdown

omeka-s Playground Preview

Open this PR in Omeka-S Playground
Try this PR in your browser

This preview loads the plugin directly from the PR branch ZIP in Omeka-S Playground.

@erseco
erseco merged commit 6810f51 into main Jul 24, 2026
2 checks passed
@erseco
erseco deleted the security/block-fork-actions branch July 24, 2026 21:24

erseco commented Jul 24, 2026

Copy link
Copy Markdown
Member Author

Follow-up: #23 reverts this restriction. We will rely on GitHub's Require approval for all external contributors setting so maintainers can still run previews for legitimate fork contributions after manual approval.

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.

1 participant