Skip to content

Commit eaaf753

Browse files
authored
chore: Fix the workflow that adds the interface-spec label
When a PR is submitted from a fork from an external contributor, the workflow that attempts to add the `interface-spec` label fails, e.g. on this [PR](#5240). According to actions/labeler#36 (comment) this should be fixed by changing the type of action that triggers the workflow from `pull_request` to `pull_request_target` as this adds the necessary write permissions through a github token.
1 parent 0238e7c commit eaaf753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/interface-spec.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Interface Specification
22
on:
3-
pull_request:
3+
pull_request_target:
44
paths:
55
- .github/workflows/interface-spec.yml
66
- docs/references/http-gateway-protocol-spec.md

0 commit comments

Comments
 (0)