From f10bf8338ea060dacae4d8aa89c66f2ab2636713 Mon Sep 17 00:00:00 2001 From: Todd Treece <360020+toddtreece@users.noreply.github.com> Date: Fri, 3 Jan 2025 14:33:30 -0500 Subject: [PATCH] Chore: Prevent forks from running go workspace update action (#98488) --- .github/workflows/pr-dependabot-update-go-workspace.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-dependabot-update-go-workspace.yml b/.github/workflows/pr-dependabot-update-go-workspace.yml index 5f56c594893..73ca9a857ae 100644 --- a/.github/workflows/pr-dependabot-update-go-workspace.yml +++ b/.github/workflows/pr-dependabot-update-go-workspace.yml @@ -16,7 +16,7 @@ permissions: jobs: update: runs-on: "ubuntu-latest" - if: ${{ github.actor == 'dependabot[bot]' }} + if: ${{ github.actor == 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository }} continue-on-error: true steps: - name: Retrieve GitHub App secrets