Skip to content

Commit a382e0e

Browse files
committed
workflows: Run pull_request_target for differnt context
As suggested in similar actions: https://github.com/actions/labeler Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent 7c5eaa4 commit a382e0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
# Triggers the workflow on push or pull request events but only for the main branch
88
push:
99
branches: [ main ]
10-
pull_request:
10+
pull_request_target:
1111
branches: [ main ]
1212

1313
# Allows you to run this workflow manually from the Actions tab
@@ -49,7 +49,7 @@ jobs:
4949
run: |
5050
python tests/validate_yaml.py
5151
on-fail:
52-
if: failure() && github.event_name == 'pull_request'
52+
if: failure() && github.event_name == 'pull_request_target'
5353
runs-on: ubuntu-latest
5454
needs: check
5555
permissions:

0 commit comments

Comments
 (0)