Explorar el Código

Merge pull request #1648 from PrivateBin/workflows-for-collaborators

Workflows for collaborators
El RIDO hace 10 meses
padre
commit
5bd550e61d
Se han modificado 2 ficheros con 8 adiciones y 1 borrados
  1. 6 1
      .github/workflows/snyk-scan.yml
  2. 2 0
      .github/workflows/tests.yml

+ 6 - 1
.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

+ 2 - 0
.github/workflows/tests.yml

@@ -1,6 +1,8 @@
 name: Tests
 on:
   push:
+  pull_request:
+    branches: [ master ]
   workflow_dispatch:
 
 jobs: