From aebac19d8d29338a59066f1af3df647aaf328337 Mon Sep 17 00:00:00 2001 From: "Rafalko, Maksim" Date: Wed, 31 May 2023 11:57:11 +0300 Subject: [PATCH] Use `pull_request_target` to avoid GH Action failures when PR is created from a fork --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 23a8783..5e35b26 100644 --- a/README.md +++ b/README.md @@ -8,14 +8,14 @@ To install it, copy and paste the following snippet into your `.github/workflows name: 'Require tests if source code is changed' on: - pull_request: + pull_request_target: types: [opened] jobs: check: runs-on: ubuntu-latest steps: - - uses: infection/tests-checker-action@v1.0.1 + - uses: infection/tests-checker-action@v1.0.2 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ```