From 82692a802e6e930474f9ffa92d64e94d0ae9af55 Mon Sep 17 00:00:00 2001 From: Spencer Schrock Date: Fri, 17 Nov 2023 10:24:04 -0800 Subject: [PATCH] :seedling: allow contributors to call scdiff workflow (#3683) also removes the edited trigger. codecov posts 3 times on each PR, which causes this action to trigger 3x. It is skipped though, so not a huge deal. Signed-off-by: Spencer Schrock --- .github/workflows/scdiff.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scdiff.yml b/.github/workflows/scdiff.yml index 3dd02033..7ffc03e6 100644 --- a/.github/workflows/scdiff.yml +++ b/.github/workflows/scdiff.yml @@ -1,7 +1,7 @@ name: scdiff PR evaluation on: issue_comment: - types: [created, edited] + types: [created] permissions: read-all @@ -61,7 +61,7 @@ jobs: uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 with: script: | - const allowedAssociations = ["COLLABORATOR", "MEMBER", "OWNER"]; + const allowedAssociations = ["COLLABORATOR", "CONTRIBUTOR", "MEMBER", "OWNER"]; authorAssociation = '${{ github.event.comment.author_association }}' if (!allowedAssociations.includes(authorAssociation)) { core.setFailed("You don't have access to run scdiff");