diff --git a/.github/workflows/automation.yml b/.github/workflows/automation.yml index 9348b9bf..5dfe9c1b 100644 --- a/.github/workflows/automation.yml +++ b/.github/workflows/automation.yml @@ -10,12 +10,12 @@ on: - master paths-ignore: - "**/*.md" - pull_request_target: + pull_request: jobs: compose-comment: name: Compose PR comment - if: ${{ always() && !cancelled() && github.event_name == 'pull_request_target' }} + if: ${{ always() && !cancelled() && github.event_name == 'pull_request' }} uses: ./.github/workflows/job_messages.yml with: commit: ${{ github.event.pull_request.head.sha }} @@ -24,7 +24,7 @@ jobs: push-comment: name: Push comment to PR 🖥️ - if: ${{ always() && !cancelled() && github.event_name == 'pull_request_target' && needs.compose-comment.result == 'success' }} + if: ${{ always() && !cancelled() && github.event_name == 'pull_request' && needs.compose-comment.result == 'success' }} runs-on: ubuntu-latest needs: - compose-comment @@ -39,7 +39,7 @@ jobs: project: name: Project board 📊 - if: ${{ github.event_name == 'pull_request_target' }} + if: ${{ github.event_name == 'pull_request' }} runs-on: ubuntu-latest steps: @@ -57,7 +57,7 @@ jobs: steps: - name: Label PR depending on modified files uses: actions/labeler@v5.0.0 - if: ${{ github.event_name == 'pull_request_target' }} + if: ${{ github.event_name == 'pull_request' }} continue-on-error: true with: repo-token: "${{ secrets.JF_BOT_TOKEN }}"