From 30914f1e93441913eefcd6b7712ead6261b5a353 Mon Sep 17 00:00:00 2001 From: Tiago Castro Date: Fri, 9 Feb 2024 14:40:05 +0000 Subject: [PATCH] ci(gha): don't use secret from fork Signed-off-by: Tiago Castro --- .github/workflows/pr-submodule-branch.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pr-submodule-branch.yml b/.github/workflows/pr-submodule-branch.yml index 1daf29bca..834442a96 100644 --- a/.github/workflows/pr-submodule-branch.yml +++ b/.github/workflows/pr-submodule-branch.yml @@ -13,6 +13,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + if: github.event.pull_request.head.repo.fork + with: + fetch-depth: 0 + submodules: recursive + - uses: actions/checkout@v4 + if: "! github.event.pull_request.head.repo.fork" with: fetch-depth: 0 submodules: recursive