mirror of
https://github.com/coreos/chunkah.git
synced 2026-11-03 21:49:44 -09:00
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:
parent
21bcb0ed8a
commit
179141e1ef
1 changed files with 1 additions and 1 deletions
2
.github/workflows/dependabot.yml
vendored
2
.github/workflows/dependabot.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue