Skip to content

Commit

Permalink
chore: Fix the workflow that adds the interface-spec label (#5243)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dsarlis authored Feb 14, 2025
1 parent 4d6887f commit cfaf592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/interface-spec.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Interface Specification
on:
pull_request:
pull_request_target:
paths:
- .github/workflows/interface-spec.yml
- docs/references/http-gateway-protocol-spec.md
Expand Down

0 comments on commit cfaf592

Please sign in to comment.