From a4d4d739848723f66e5de2768ffbd41ee844b268 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Wed, 4 Sep 2024 08:31:01 +0200 Subject: [PATCH] Fix security issue --- .github/workflows/update_galata_references.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update_galata_references.yml b/.github/workflows/update_galata_references.yml index 7b97243..34edd91 100644 --- a/.github/workflows/update_galata_references.yml +++ b/.github/workflows/update_galata_references.yml @@ -15,7 +15,12 @@ defaults: jobs: update-reference-screenshots: name: Update Galata References - if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'update galata references') }} + if: > + ( + github.event.comment.author_association == 'OWNER' || + github.event.comment.author_association == 'COLLABORATOR' || + github.event.comment.author_association == 'MEMBER' + ) && github.event.issue.pull_request && contains(github.event.comment.body, 'please update snapshots') runs-on: ubuntu-latest steps: