Skip to content

fix(ci): skip Slack notification for fork PR reviews#55

Open
stevefulme1 wants to merge 1 commit into
redhat-cop:mainfrom
stevefulme1:fix/slack-fork-review-notification
Open

fix(ci): skip Slack notification for fork PR reviews#55
stevefulme1 wants to merge 1 commit into
redhat-cop:mainfrom
stevefulme1:fix/slack-fork-review-notification

Conversation

@stevefulme1

Copy link
Copy Markdown
Contributor

Summary

  • pull_request_review events from fork PRs cannot access repo secrets, causing the Slack notification step to fail with Missing input! Either a method or webhook is required
  • Skip the notify job when the event is pull_request_review and the PR originates from a fork (head repo differs from base repo)
  • pull_request_target events are unaffected and continue to notify for all PRs regardless of origin

Test plan

  • Verify fork PR reviews no longer trigger failed Slack notification
  • Verify non-fork PR reviews still send Slack notifications
  • Verify pull_request_target events (open/close/merge) still work for all PRs

pull_request_review events from fork PRs cannot access repo secrets,
causing the Slack notification step to fail with "Missing input".
Skip the notify job for fork PR reviews since the webhook URL is
unavailable. pull_request_target events are unaffected and continue
to send notifications for all PRs.
@stevefulme1 stevefulme1 requested a review from sabre1041 as a code owner July 13, 2026 13:14
@stevefulme1 stevefulme1 deployed to external-ci July 13, 2026 13:15 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant