mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
Use the more idiomatic property that signals a fork
Pulled from https://til.cazzulino.com/devops-ci-cd/how-to-skip-steps-or-jobs-in-github-actions-for-prs-from-forks
This commit is contained in:
parent
10db75894f
commit
77e7ec720f
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ jobs:
|
|||
example:
|
||||
runs-on: ubuntu-latest
|
||||
# Check if the event is not triggered by a fork
|
||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||
if: ${{ !github.event.pull_request.head.repo.fork }}
|
||||
```
|
||||
|
||||
For further reading regarding the security of pull requests, see this GitHub blog post titled [Keeping your GitHub Actions and workflows secure: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue