mirror of https://github.com/grafana/grafana.git
Security: Fix actor spoofing vulnerability in Dependabot workflow (#109519)
Replace github.actor with github.event.pull_request.user.login to prevent actor context spoofing in pull requests from forks. This ensures only genuine Dependabot PRs can trigger the workspace update workflow. Fixes zizmor security finding with Medium confidence level. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
f2303a8ad9
commit
9b3b6fcdb2
|
|
@ -17,7 +17,7 @@ permissions:
|
|||
jobs:
|
||||
update:
|
||||
runs-on: "ubuntu-latest"
|
||||
if: ${{ github.actor == 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||
continue-on-error: true
|
||||
steps:
|
||||
- name: Retrieve GitHub App secrets
|
||||
|
|
|
|||
Loading…
Reference in New Issue