core-agent-ide/.github/workflows
leezenn 0c1658d0ec
ci: prevent workflows from running on forks (#8629)
## Summary

Forked repositories inherit GitHub Actions workflows including scheduled
ones. This causes:

1. **Wasted Actions minutes** - Scheduled workflows run on forks even
though they will fail
2. **Failed runs** - Workflows requiring `CODEX_OPENAI_API_KEY` fail
immediately on forks
3. **Noise** - Fork owners see failed workflow runs they didn't trigger

This PR adds `if: github.repository == 'openai/codex'` guards to
workflows that should only run on the upstream repository.

### Affected workflows

| Workflow | Trigger | Issue |
|----------|---------|-------|
| `rust-release-prepare` | `schedule: */4 hours` | Runs 6x/day on every
fork |
| `close-stale-contributor-prs` | `schedule: daily` | Runs daily on
every fork |
| `issue-deduplicator` | `issues: opened` | Requires
`CODEX_OPENAI_API_KEY` |
| `issue-labeler` | `issues: opened` | Requires `CODEX_OPENAI_API_KEY` |

### Note

`cla.yml` already has this guard (`github.repository_owner ==
'openai'`), so it was not modified.

## Test plan

- [ ] Verify workflows still run correctly on `openai/codex`
- [ ] Verify workflows are skipped on forks (can check via Actions tab
on any fork)
2026-01-03 13:12:16 -07:00
..
cargo-deny.yml bump cargo-deny-action ver (#8345) 2025-12-19 15:23:02 -08:00
ci.yml use mainline version as baseline in ci (#8271) 2025-12-18 11:53:36 -08:00
cla.yml Fixed CLA action to properly exempt dependabot (#7429) 2025-11-30 20:45:17 -08:00
close-stale-contributor-prs.yml ci: prevent workflows from running on forks (#8629) 2026-01-03 13:12:16 -07:00
codespell.yml chore(deps): bump actions/checkout from 5 to 6 (#7230) 2025-11-24 11:45:57 -08:00
issue-deduplicator.yml ci: prevent workflows from running on forks (#8629) 2026-01-03 13:12:16 -07:00
issue-labeler.yml ci: prevent workflows from running on forks (#8629) 2026-01-03 13:12:16 -07:00
rust-ci.yml download new windows binaries when staging npm package (#8203) 2025-12-17 13:34:32 -08:00
rust-release-prepare.yml ci: prevent workflows from running on forks (#8629) 2026-01-03 13:12:16 -07:00
rust-release.yml [release] Add a dmg target for MacOS (#8207) 2025-12-18 11:19:10 -08:00
sdk.yml Upgrade GitHub Actions for Node 24 compatibility (#8102) 2025-12-16 11:31:25 -08:00
shell-tool-mcp-ci.yml Upgrade GitHub Actions for Node 24 compatibility (#8102) 2025-12-16 11:31:25 -08:00
shell-tool-mcp.yml Upgrade GitHub Actions for Node 24 compatibility (#8102) 2025-12-16 11:31:25 -08:00