Chore: Prevent forks from running go workspace update action (#98488)

This commit is contained in:
Todd Treece 2025-01-03 14:33:30 -05:00 committed by GitHub
parent e3e51f6e3b
commit f10bf8338e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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