From cfaf59259b27dc9c5e4fffd3286e8981fcab92d5 Mon Sep 17 00:00:00 2001 From: Dimitris Sarlis Date: Fri, 14 Feb 2025 09:08:41 +0100 Subject: [PATCH] chore: Fix the workflow that adds the interface-spec label (#5243) 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](https://github.com/dfinity/portal/pull/5240). According to https://github.com/actions/labeler/issues/36#issuecomment-670967903 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. --- .github/workflows/interface-spec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/interface-spec.yml b/.github/workflows/interface-spec.yml index 9ff34ae0f6..0fb9de4922 100644 --- a/.github/workflows/interface-spec.yml +++ b/.github/workflows/interface-spec.yml @@ -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