File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,7 @@ runs:
192192 ACTION_PATH : ${{ github.action_path }}
193193 # Get author_association from comment events (the main risk)
194194 COMMENT_ASSOCIATION : ${{ github.event.comment.author_association }}
195+ COMMENT_USER_LOGIN : ${{ github.event.comment.user.login }}
195196 DEBUG : ${{ inputs.debug }}
196197 run : |
197198 # Only enforce auth for comment-triggered events
@@ -202,6 +203,13 @@ runs:
202203 exit 0
203204 fi
204205
206+ # Allow our own GitHub App bot to trigger reviews (e.g., auto-triage posts /review)
207+ if [ "$COMMENT_USER_LOGIN" = "docker-agent[bot]" ]; then
208+ echo "ℹ️ Skipping auth check (trusted bot: $COMMENT_USER_LOGIN)"
209+ echo "authorized=bot" >> $GITHUB_OUTPUT
210+ exit 0
211+ fi
212+
205213 echo "Using comment author_association: $COMMENT_ASSOCIATION"
206214
207215 # Allowed roles (hardcoded for security - cannot be overridden)
You can’t perform that action at this time.
0 commit comments