mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-11 08:55:27 +03:00
🌱 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:
parent
1c3d9eb6e7
commit
82692a802e
4
.github/workflows/scdiff.yml
vendored
4
.github/workflows/scdiff.yml
vendored
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user