Skip to content

Commit

Permalink
Use pull_request_target to avoid GH Action failures when PR is crea…
Browse files Browse the repository at this point in the history
…ted from a fork
  • Loading branch information
maks-rafalko committed May 31, 2023
1 parent 7e3fc70 commit aebac19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected].1
- uses: infection/[email protected].2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
Expand Down

0 comments on commit aebac19

Please sign in to comment.