fix(ci): skip watch-opencode-releases on forks - #11269
Conversation
sync to main
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (1 file)
Previous Review Summary (commit c737850)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit c737850)Status: No Issues Found | Recommendation: Merge Files Reviewed (1 file)
Reviewed by deepseek-v4-pro · 235,598 tokens Review guidance: REVIEW.md from base branch |
The schedule trigger fires on every repo where the file exists, including contributor forks. Forks don't have access to OPENCODE_WATCH_SLACK_WEBHOOK, so the Slack step fails. The previous vars.OPENCODE_WATCH_ENABLED guard evaluated to true on forks (empty != 'false'), so it didn't protect anything. Add the same github.repository == 'Kilo-Org/kilocode' guard used by 18 other workflows in this repo.
c737850 to
7bf75ee
Compare
|
The |
|
Thanks for reporting the issue and sending the fix. Merged. |
|
Thanks! |
|
Hey @vkeerthivikram, could you please link your GitHub account to the Kilo account? This way, we can grant you credits for the merged PRs. |
hey @johnnyeric , sorry i was on a vacation and missed this. Its already linked!! Should i mail you once with my usernames and Kilo Account email? |
The schedule trigger fires on every repo where the file exists, including contributor forks. Forks don't have access to OPENCODE_WATCH_SLACK_WEBHOOK, so the Slack step fails. The previous vars.OPENCODE_WATCH_ENABLED guard evaluated to true on forks (empty != 'false'), so it didn't protect anything. Add the same github.repository == 'Kilo-Org/kilocode' guard used by 18 other workflows in this repo.
Summary
if: github.repository == 'Kilo-Org/kilocode'to thecheck-releasejob inwatch-opencode-releases.yml.vars.OPENCODE_WATCH_ENABLED != 'false'guard did not protect forks: on a fork the variable is empty,'' != 'false'is true, the job ran, and the Slack step failed becauseOPENCODE_WATCH_SLACK_WEBHOOKis not available on forks.Repro
Kilo-Org/kilocode.7,37 * * * *cron, or run viaworkflow_dispatch.slackapi/slack-github-actionfails with:SlackError: Missing input! Either a token or webhook is required to take action.Refs