From c80fbee73f50cc673d37eb591d420523aa0d5801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?AsPulse=20/=20=E3=81=82=E3=81=99=E3=81=B1=E3=82=8B?= <84216737+AsPulse@users.noreply.github.com> Date: Tue, 12 Dec 2023 04:58:41 +0000 Subject: [PATCH] Update deps-check, format-and-lint --- .github/workflows/deps-check.yaml | 7 ++++++- .github/workflows/format-and-lint.yaml | 14 ++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deps-check.yaml b/.github/workflows/deps-check.yaml index fba8d3e..3825488 100644 --- a/.github/workflows/deps-check.yaml +++ b/.github/workflows/deps-check.yaml @@ -11,7 +11,12 @@ jobs: manypkg: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - if: ${{ github.event_name != 'pull_request_target' }} + uses: actions/checkout@v3 + - if: ${{ github.event_name == 'pull_request_target' }} + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Setup Node.js uses: ./.github/actions/setup-node - name: Run manypkg diff --git a/.github/workflows/format-and-lint.yaml b/.github/workflows/format-and-lint.yaml index 0b5ad60..97cf194 100644 --- a/.github/workflows/format-and-lint.yaml +++ b/.github/workflows/format-and-lint.yaml @@ -11,7 +11,12 @@ jobs: prettier: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - if: ${{ github.event_name != 'pull_request_target' }} + uses: actions/checkout@v3 + - if: ${{ github.event_name == 'pull_request_target' }} + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Setup Node.js uses: ./.github/actions/setup-node - name: Run Prettier @@ -20,7 +25,12 @@ jobs: eslint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - if: ${{ github.event_name != 'pull_request_target' }} + uses: actions/checkout@v3 + - if: ${{ github.event_name == 'pull_request_target' }} + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Setup turbo uses: ./.github/actions/setup-turbo with: