🌱 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 <sschrock@google.com>
This commit is contained in:
Spencer Schrock 2023-11-17 10:24:04 -08:00 committed by GitHub
parent 1c3d9eb6e7
commit 82692a802e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");