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

This commit is contained in:
El RIDO 2025-09-13 07:20:25 +02:00
parent 394b4cb33d
commit 86b1a4e9ac
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92

View file

@ -12,7 +12,7 @@ jobs:
# https://github.com/snyk/actions/tree/master/php
snyk-php:
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:
- uses: actions/checkout@v5
- name: Install Google Cloud Storage