Skip to content

Release workflow example uses regular pull request events - #114

Draft
Marius Storhaug (MariusStorhaug) wants to merge 1 commit into
mainfrom
docs/pull-request-trigger
Draft

Marius Storhaug (MariusStorhaug) wants to merge 1 commit into
mainfrom
docs/pull-request-trigger

Conversation

@MariusStorhaug

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

The README release workflow example now uses pull_request instead of pull_request_target. This matches the repository workflows. The action code and existing consumer workflows do not change.

Fixed: Release workflow example uses regular pull request events

Users who copy the example now configure regular pull request events. The branch filter and event types stay the same. No action is required for existing consumers unless they want to adopt the updated example. To adopt it, replace pull_request_target with pull_request in the calling workflow.

For pull requests from forks, GITHUB_TOKEN is read-only by default. Release creation and pull request comments require write permissions, so those operations can fail on fork runs. This documentation change does not add support for privileged fork runs.

Technical details
  • Changed only the event name in the README example. All repository workflows already use pull_request.
  • Confirmed that no pull_request_target references remain in the repository. git diff --check passed.
  • Scoped comparison: base 750abed0ecab02394554b610dc3aa191e75e3248 to candidate 6660fe91979ce1cd3f08d0c6c746ab951a83f2ec.
  • The release workflow path filter includes only action.yml and src/**. This README-only change does not invoke that release route.
  • No delivery issue is linked. The requested example change is complete. Checked open issues in PSModule/Release-GHRepository; none is fully resolved by this one-line change.
Changed surface Standards checked Framework docs checked Result
README workflow event MSX PR Format; GitHub Actions event and permission guidance None (no framework-specific docs apply to this event-name correction) Fixed in this PR

@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title Use pull_request in the release workflow example Release workflow example uses regular pull request events Nov 4, 2026
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