From 573fd303db2e0e4e2e1a89c2f442970029c5fe28 Mon Sep 17 00:00:00 2001 From: Herbert Roth <126679157+herbertroth@users.noreply.github.com> Date: Thu, 14 Dec 2023 15:18:11 +0100 Subject: [PATCH] Add pull_request_target --- .github/workflows/qodana.yaml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/qodana.yaml b/.github/workflows/qodana.yaml index 39913bf8..cac19441 100644 --- a/.github/workflows/qodana.yaml +++ b/.github/workflows/qodana.yaml @@ -1,22 +1,23 @@ name: Qodana on: - schedule: - - cron: '0 01 * * *' # Run once per day workflow_dispatch: - push: + pull_request_target: + types: [opened, synchronize, reopened] + branches: + - '*' + - '**' paths: - '**.php' - '**.yml' - '**.yaml' - branches: - - '*' - - '**' - pull_request: - types: [opened, synchronize, reopened] + push: paths: - '**.php' - '**.yml' - '**.yaml' + branches: + - '*' + - '**' jobs: qodana: @@ -51,4 +52,4 @@ jobs: with: args: --baseline,qodana.sarif.json env: - QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} \ No newline at end of file + QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}