Skip to content

Commit 8f39e7b

Browse files
Cody Kickertzclaude
andcommitted
fix(ci): skip gate-passed check for bot PRs
Dependabot PRs cannot run kanon gate locally, so the Gate-Passed trailer check fails unconditionally. Skip the verification step when the PR author is a bot. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Gate-Passed: kanon v0.1.0 (menos, 2026-03-26T19:00:56-05:00) Gate-Checks:
1 parent ff08a76 commit 8f39e7b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/gate-verify.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,19 @@ jobs:
1515
with:
1616
fetch-depth: 0
1717

18+
- name: Check for bot PR
19+
id: bot-check
20+
run: |
21+
author="${{ github.event.pull_request.user.login }}"
22+
if [[ "$author" == *"[bot]" || "$author" == "dependabot"* ]]; then
23+
echo "skip=true" >> "$GITHUB_OUTPUT"
24+
echo "Skipping gate check for bot author: $author"
25+
else
26+
echo "skip=false" >> "$GITHUB_OUTPUT"
27+
fi
28+
1829
- name: Verify Gate-Passed trailer
30+
if: steps.bot-check.outputs.skip != 'true'
1931
run: |
2032
commits=$(git log --format="%H" origin/main..HEAD)
2133
if [ -z "$commits" ]; then

0 commit comments

Comments
 (0)