From ea5e515787b779dc31303c1c384f8369efbacd8e Mon Sep 17 00:00:00 2001 From: galargh Date: Thu, 1 Aug 2024 11:08:11 +0100 Subject: [PATCH] ci: update collaborator check in the benchmarks workflow --- .github/workflows/edr-benchmark.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/edr-benchmark.yml b/.github/workflows/edr-benchmark.yml index 2c2346a90..2898e0bb6 100644 --- a/.github/workflows/edr-benchmark.yml +++ b/.github/workflows/edr-benchmark.yml @@ -24,7 +24,7 @@ jobs: environment: github-action-benchmark runs-on: self-hosted # Only run for trusted collaborators since third-parties could run malicious code on the self-hosted benchmark runner. - if: github.ref == 'refs/heads/main' || (github.event.pull_request.author_association == 'OWNER' || github.event.pull_request.author_association == 'MEMBER' || github.event.pull_request.author_association == 'COLLABORATOR') + if: github.ref == 'refs/heads/main' || github.repository == github.event.pull_request.head.repo.full_name steps: - uses: actions/checkout@v3