fix typo in workflow
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Tue, 21 Oct 2025 19:56:34 +0000 (21:56 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Tue, 21 Oct 2025 19:56:34 +0000 (21:56 +0200)
.github/workflows/auto-merge-dependency-updates.yml

index 6e23709f722852c488b7554f6d39f6605ada4242..bf0a0f79a3002f5a8aea2422248fdb275f88c6ef 100644 (file)
@@ -24,12 +24,11 @@ jobs:
           # Security check 1: Ensure PR is from a trusted actor
           AUTHOR="${{ github.event.pull_request.user.login }}"
 
-          # Allow only the github-actions bot or specific trusted users/bots
-          # Adjust this list based on your setup
+          # Allow only the github-actions bot, music-assistant-machine, or specific trusted bots
           if [[ "$AUTHOR" != "github-actions[bot]" ]] && \
-             [[ "$AUTHOR" != "dependabot[bot]" ]]; then
+             [[ "$AUTHOR" != "music-assistant-machine" ]]; then
             echo "❌ PR author '$AUTHOR' is not a trusted automation account"
-            echo "Only github-actions[bot] is allowed to trigger auto-merge"
+            echo "Only github-actions[bot], music-assistant-machine are allowed to trigger auto-merge"
             exit 1
           fi
 
@@ -52,10 +51,11 @@ jobs:
           echo "✅ PR has required 'dependencies' label"
 
           # Security check 3: Verify commit author matches expected automation
-          # The commits should be authored by github-actions[bot]
+          # The commits should be authored by the trusted automation account
           COMMIT_AUTHOR=$(gh pr view "$PR_NUMBER" --json commits --jq '.commits[-1].authors[0].login')
 
           if [[ "$COMMIT_AUTHOR" != "github-actions[bot]" ]] && \
+             [[ "$COMMIT_AUTHOR" != "music-assistant-machine" ]] && \
              [[ "$COMMIT_AUTHOR" != "${{ github.event.pull_request.user.login }}" ]]; then
             echo "❌ Commit author '$COMMIT_AUTHOR' does not match PR author"
             exit 1