Replace pull_request with pull_request_target
This commit is contained in:
parent
eb89e0191f
commit
1ff39f13f5
1 changed files with 4 additions and 1 deletions
5
.github/workflows/e2e_tests.yml
vendored
5
.github/workflows/e2e_tests.yml
vendored
|
|
@ -3,7 +3,7 @@ name: Playwright Tests
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
pull_request:
|
pull_request_target:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
|
@ -20,7 +20,10 @@ jobs:
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y libwoff1
|
sudo apt-get install -y libwoff1
|
||||||
|
|
||||||
|
# Security: Explicitly checkout the PR's code, not the target branch
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue