From 58137aa63172a5518a92ab086ee35ecc463044b6 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Thu, 30 Oct 2025 01:56:18 +0900 Subject: [PATCH] feat: Allow validation workflow to run on forks --- .github/workflows/validate-lockfile.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate-lockfile.yml b/.github/workflows/validate-lockfile.yml index 6a1e532ea..119f43180 100644 --- a/.github/workflows/validate-lockfile.yml +++ b/.github/workflows/validate-lockfile.yml @@ -1,7 +1,7 @@ name: Validate pnpm-lock.yaml on: - pull_request: + pull_request_target: paths: - 'pnpm-lock.yaml' - '**/package.json' @@ -15,6 +15,8 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Set up Node.js uses: actions/setup-node@v4