Explorar el Código

disable running snyk if triggering user doesn't have access to the secret

El RIDO hace 10 meses
padre
commit
86b1a4e9ac
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      .github/workflows/snyk-scan.yml

+ 1 - 1
.github/workflows/snyk-scan.yml

@@ -12,7 +12,7 @@ jobs:
   # https://github.com/snyk/actions/tree/master/php
   # https://github.com/snyk/actions/tree/master/php
   snyk-php:
   snyk-php:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
-    if: ${{ github.repository == 'PrivateBin/PrivateBin' }}
+    if: ${{ github.repository == 'PrivateBin/PrivateBin' && (github.event.pull_request.author_association == 'COLLABORATOR' || github.event.pull_request.author_association == 'OWNER') }}
     steps:
     steps:
       - uses: actions/checkout@v5
       - uses: actions/checkout@v5
       - name: Install Google Cloud Storage
       - name: Install Google Cloud Storage