diff --git a/.github/workflows/snyk-scan.yml b/.github/workflows/snyk-scan.yml index 72e58de3..851211f2 100644 --- a/.github/workflows/snyk-scan.yml +++ b/.github/workflows/snyk-scan.yml @@ -12,7 +12,12 @@ 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 == 'CONTRIBUTOR' || + github.event.pull_request.author_association == 'MEMBER' || + github.event.pull_request.author_association == 'OWNER' ) steps: - uses: actions/checkout@v5 - name: Install Google Cloud Storage diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 01cfdbb4..a33660b2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,8 @@ name: Tests on: push: + pull_request: + branches: [ master ] workflow_dispatch: jobs: