Skip to content

Commit 49f42eb

Browse files
committed
run on pull_request
1 parent 896e3af commit 49f42eb

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

.github/workflows/playwright.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Security Notes
2-
# This workflow uses `pull_request_target`, so will run against all PRs automatically (without approval), be careful with allowing any user-provided code to be run here
32
# Only selected Actions are allowed within this repository. Please refer to (https://github.com/nodejs/nodejs.org/settings/actions)
43
# for the full list of available actions. If you want to add a new one, please reach out a maintainer with Admin permissions.
54
# REVIEWERS, please always double-check security practices before merging a PR that contains Workflow changes!!
@@ -9,11 +8,9 @@
98
name: Playwright Tests
109

1110
on:
12-
pull_request_target:
11+
pull_request:
1312
branches:
1413
- main
15-
types:
16-
- labeled
1714

1815
defaults:
1916
run:
@@ -26,7 +23,6 @@ permissions:
2623

2724
jobs:
2825
get-vercel-preview:
29-
if: ${{ github.event.label.name == 'github_actions:pull-request' }}
3026
name: Get Vercel Preview
3127
runs-on: ubuntu-latest
3228
outputs:
@@ -66,9 +62,6 @@ jobs:
6662

6763
- name: Git Checkout
6864
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
69-
with:
70-
# Provides the Pull Request commit SHA or the GitHub merge group ref
71-
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.ref }}
7265

7366
- name: Set up pnpm
7467
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0

0 commit comments

Comments
 (0)