]> source.dussan.org Git - nextcloud-server.git/commitdiff
ci: Execute psalm:security on pushes 48483/head
authorJoas Schilling <coding@schilljs.com>
Tue, 1 Oct 2024 10:07:21 +0000 (12:07 +0200)
committerJoas Schilling <coding@schilljs.com>
Tue, 1 Oct 2024 10:07:50 +0000 (12:07 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
.github/workflows/static-code-analysis.yml

index 2e22ff533c8c5ab6791f70a581c3de2097a4953d..e6969a20e18c2c3822056bc34b8795bff7d60895 100644 (file)
@@ -4,6 +4,14 @@ name: Psalm static code analysis
 
 on:
   pull_request:
+  push:
+    branches:
+      - main
+      - master
+      - stable*
+    paths:
+      - '.github'
+      - '**.php'
 
 concurrency:
   group: static-code-analysis-${{ github.head_ref || github.run_id }}
@@ -13,7 +21,7 @@ jobs:
   static-code-analysis:
     runs-on: ubuntu-latest
 
-    if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
+    if: ${{ github.event_name != 'push' && github.repository_owner != 'nextcloud-gmbh' }}
 
     steps:
       - name: Checkout
@@ -43,6 +51,8 @@ jobs:
   static-code-analysis-security:
     runs-on: ubuntu-latest
 
+    if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
+
     steps:
       - name: Checkout code
         uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
@@ -75,6 +85,8 @@ jobs:
   static-code-analysis-ocp:
     runs-on: ubuntu-latest
 
+    if: ${{ github.event_name != 'push' && github.repository_owner != 'nextcloud-gmbh' }}
+
     steps:
       - name: Checkout
         uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938