Skip to content

Commit 5ffcba9

Browse files
authored
Guard no-response workflow against bot-authored issue_comment events (#62344)
1 parent fe60246 commit 5ffcba9

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/no-response.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,16 @@ permissions:
2222
jobs:
2323
noResponse:
2424
runs-on: ubuntu-latest
25-
if: github.repository == 'github/docs'
25+
# Only run in the OS repository, and skip bot-authored events. On failure the
26+
# create-workflow-failure-issue step below posts a comment (as a bot); that
27+
# comment is itself an issue_comment event that would re-trigger this workflow.
28+
# During a transient failure that loops, so guard against bot actors to keep
29+
# one failure from producing a flood of runs and Slack alerts.
30+
if: >-
31+
github.repository == 'github/docs' &&
32+
github.actor != 'docs-bot' &&
33+
github.actor != 'github-actions' &&
34+
!endsWith(github.actor, '[bot]')
2635
steps:
2736
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
2837
with:

0 commit comments

Comments
 (0)