Skip to content

Commit 6335f21

Browse files
committed
WIP [2026-03-04 10:49:27]
Signed-off-by: Derek Misler <derek.misler@docker.com>
1 parent 956bbc7 commit 6335f21

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)