fix: enable CI workflows for the fork

Remove repository restrictions that were preventing workflows from running on forks.
This enables:
- CI/CD pipeline
- Codespell checks
- Rust CI tests
- Rust release workflow
- Codex GitHub action
This commit is contained in:
James Peter
2025-08-12 08:35:16 +10:00
parent e52ebe9779
commit de88ce424b
5 changed files with 4 additions and 12 deletions
-1
View File
@@ -7,7 +7,6 @@ on:
jobs:
build-test:
runs-on: ubuntu-latest
if: github.repository == 'openai/codex'
timeout-minutes: 10
env:
NODE_OPTIONS: --max-old-space-size=4096
-1
View File
@@ -15,7 +15,6 @@ jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest
if: github.repository == 'openai/codex'
steps:
- name: Checkout
+4 -6
View File
@@ -17,12 +17,10 @@ jobs:
# Note the label values should match the ones in the .github/codex/labels
# folder.
if: |
github.repository == 'openai/codex' && (
(github.event_name == 'issues' && (
(github.event.action == 'labeled' && (github.event.label.name == 'codex-attempt' || github.event.label.name == 'codex-triage'))
)) ||
(github.event_name == 'pull_request' && github.event.action == 'labeled' && (github.event.label.name == 'codex-review' || github.event.label.name == 'codex-rust-review'))
)
(github.event_name == 'issues' && (
(github.event.action == 'labeled' && (github.event.label.name == 'codex-attempt' || github.event.label.name == 'codex-triage'))
)) ||
(github.event_name == 'pull_request' && github.event.action == 'labeled' && (github.event.label.name == 'codex-review' || github.event.label.name == 'codex-rust-review'))
runs-on: ubuntu-latest
permissions:
contents: write # can push or create branches
-2
View File
@@ -20,7 +20,6 @@ jobs:
general:
name: Format / etc
runs-on: ubuntu-24.04
if: github.repository == 'openai/codex'
defaults:
run:
working-directory: codex-rs
@@ -37,7 +36,6 @@ jobs:
lint_build_test:
name: ${{ matrix.runner }} - ${{ matrix.target }}
runs-on: ${{ matrix.runner }}
if: github.repository == 'openai/codex'
timeout-minutes: 30
defaults:
run:
-2
View File
@@ -18,7 +18,6 @@ concurrency:
jobs:
tag-check:
runs-on: ubuntu-latest
if: github.repository == 'openai/codex'
steps:
- uses: actions/checkout@v4
@@ -50,7 +49,6 @@ jobs:
needs: tag-check
name: ${{ matrix.runner }} - ${{ matrix.target }}
runs-on: ${{ matrix.runner }}
if: github.repository == 'openai/codex'
timeout-minutes: 30
defaults:
run: