Skip to content

Commit 42b8389

Browse files
committed
Add note about third-party pull requests for GitHub Actions
1 parent 178bb17 commit 42b8389

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/nuget-org/trusted-publishing.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ To get started:
5656
> This corresponds to your workflow at `.github/workflows/build.yml`. Enter the **file name only** (`build.yml`)—do not include the `.github/workflows/` path.
5757
- **Environment (optional):** `release`
5858
> Enter environment if your workflow uses e.g. `environment: release` and you want to restrict this policy to that environment. Leave this empty if you do not use GitHub Actions environments.
59-
4. In your **GitHub repo**, update your workflow to request a short‑lived API key and push your package.
59+
4. In your **GitHub repo**, update your workflow to request a short‑lived API key and push your package.
60+
61+
> [!NOTE]
62+
> While pull requests by third parties will be able to change the workflow file, their requests will be stamped with their owner and repository name IDs and thus won't match the configured trust policy and will be rejected.
63+
6064
Here’s a basic example:
6165

6266
```yaml

0 commit comments

Comments
 (0)