Commit 285e586
committed
finalize-g4w-release: must only run in response to a manually-triggered run
The purpose of the `finalize-g4w-release` functionality is to react to a
completed `release-git` run that was triggered in a Git for Windows PR
via the `/release` slash command by a trusted user.
So far, we only validate the workflow name, though. But this workflow
could easily be triggered in a crafted PR by changing the `on:
workflow_dispatch` to `on: pull_request`.
Make sure that it was triggered via `workflow_dispatch`, which would
imply that it was triggered either by a trusted user or by Git for
Windows' automation via the GitHub App's installation access token.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent 1457cf5 commit 285e586
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
0 commit comments