From be132ab2aa43351afdd2175f5fe2cdd1b5502cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= Date: Fri, 15 Nov 2024 14:13:05 +0000 Subject: [PATCH] docs: Document that semver-triggers should be ran under `pull_request_target` --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c5246b0..4b33d28 100644 --- a/README.md +++ b/README.md @@ -164,7 +164,7 @@ Suggests adding a breaking change flag to the PR title if necessary. ```yaml name: Rust Semver Checks on: - pull_request: + pull_request_target: branches: - main @@ -185,6 +185,8 @@ The fine-grained `GITHUB_PAT` secret must include the following permissions: | --- | --- | | Pull requests | Read and write | +Note that repository secrets are not available to forked repositories on `pull_request` events. +To run this workflow on pull requests from forks, ensure the action is triggered by a `pull_request_target` event instead. ## [`slack-notifier`](https://github.com/CQCL/hugrverse-actions/blob/main/.github/workflows/slack-notifier.yml)