ci: fix spoofable bot condition

github.actor can be spoofed and shouldn't be used to check whether the
PR author is a trusted bot. For more info, see:
https://docs.zizmor.sh/audits/#bot-conditions
This commit is contained in:
Daniel Hast 2026-05-03 23:37:38 -04:00 committed by Jonathan Lebon
parent 21bcb0ed8a
commit 179141e1ef

View file

@ -10,7 +10,7 @@ jobs:
permissions:
contents: write # Required to merge PR
pull-requests: write # Required to enable auto-merge for PR
if: github.actor == 'dependabot[bot]'
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Fetch Dependabot metadata
id: metadata