Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(ci): rely on pull request author check in dependabot auto-merge

justin0bd1e3c196a9
diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml
index fb16d5956..17c779e76 100644
--- a/.github/workflows/auto-merge.yml
+++ b/.github/workflows/auto-merge.yml
@@ -13,8 +13,9 @@ jobs:
dependabot:
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 45
+ # The pull request author's login is authoritative for this check;
+ # github.actor would be spoofable and adds nothing on top of it.
if: >-
- github.actor == 'dependabot[bot]' &&
github.event.pull_request.user.login == 'dependabot[bot]' &&
github.event.pull_request.base.ref == 'main' &&
github.event.pull_request.head.repo.full_name == github.repository