Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
name: Local Bazel build on ${{ matrix.os }} for ${{ matrix.target }}

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Set up Node.js for js_repl tests
uses: actions/setup-node@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/blob-size-policy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: Blob size policy
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cargo-deny.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
working-directory: ./codex-rs
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
NODE_OPTIONS: --max-old-space-size=4096
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Setup pnpm
uses: pnpm/action-setup@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Annotate locations with typos
uses: codespell-project/codespell-problem-matcher@b80729f885d32f78a716c2f107b4db1025001c42 # v1
- name: Codespell
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/issue-deduplicator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
reason: ${{ steps.normalize-all.outputs.reason }}
has_matches: ${{ steps.normalize-all.outputs.has_matches }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Prepare Codex inputs
env:
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
reason: ${{ steps.normalize-open.outputs.reason }}
has_matches: ${{ steps.normalize-open.outputs.has_matches }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Prepare Codex inputs
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
outputs:
codex_output: ${{ steps.codex.outputs.final-message }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- id: codex
uses: openai/codex-action@48c4212272635ce5c50529ae1f6516040f84dc35 # was: @main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/namespace-audit-retro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
./scripts/namespace-audit.sh "${args[@]}"

- name: Upload audit report
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
if: always()
with:
name: namespace-audit-report
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
lint_build_matrix: ${{ steps.detect.outputs.lint_build_matrix }}
tests_matrix: ${{ steps.detect.outputs.tests_matrix }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
fetch-depth: 0
- name: Detect changed paths (no external action)
Expand Down Expand Up @@ -191,7 +191,7 @@ jobs:
run:
working-directory: codex-rs
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: dtolnay/rust-toolchain@1.93.0

- name: Enforce Cargo.lock/manifest sync
Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:
run:
working-directory: codex-rs
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: dtolnay/rust-toolchain@1.93.0
with:
components: rustfmt
Expand All @@ -257,7 +257,7 @@ jobs:
run:
working-directory: codex-rs
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: dtolnay/rust-toolchain@1.93.0
- uses: taiki-e/install-action@44c6d64aa62cd779e873306675c7a58e86d6d532 # v2
with:
Expand All @@ -272,7 +272,7 @@ jobs:
needs: changed
if: ${{ needs.changed.outputs.argument_comment_lint_package == 'true' || github.event_name == 'push' }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: dtolnay/rust-toolchain@1.93.0
with:
toolchain: nightly-2025-09-18
Expand Down Expand Up @@ -316,7 +316,7 @@ jobs:
group: codex-runners
labels: codex-windows-x64
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Install Linux sandbox build dependencies
if: ${{ runner.os == 'Linux' }}
shell: bash
Expand Down Expand Up @@ -358,7 +358,7 @@ jobs:
matrix: ${{ fromJSON(needs.changed.outputs.lint_build_matrix) }}

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Install Linux build dependencies
if: ${{ runner.os == 'Linux' }}
shell: bash
Expand Down Expand Up @@ -699,7 +699,7 @@ jobs:
>>>>>>> upstream_main

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Set up Node.js for js_repl tests
uses: actions/setup-node@v6
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-release-argument-comment-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
labels: codex-windows-x64

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- uses: dtolnay/rust-toolchain@1.93.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust-release-prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
if: github.repository == 'openai/codex'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
ref: main
fetch-depth: 0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust-release-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
labels: codex-windows-arm64

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Print runner specs (Windows)
shell: powershell
run: |
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
labels: codex-windows-arm64

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Download prebuilt Windows primary binaries
uses: actions/download-artifact@v8
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust-release-zsh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
git \
libncursesw5-dev

- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Build, smoke-test, and stage zsh artifact
shell: bash
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
brew install autoconf
fi

- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Build, smoke-test, and stage zsh artifact
shell: bash
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/rust-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
tag-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: dtolnay/rust-toolchain@1.92
- name: Validate tag matches Cargo.toml version
shell: bash
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
matrix: ${{ fromJSON(needs.billed-runner-policy.outputs.build_matrix) }}

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Print runner specs (Linux)
if: ${{ runner.os == 'Linux' }}
shell: bash
Expand Down Expand Up @@ -476,7 +476,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Generate release notes from tag commit message
id: release_notes
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/rusty-v8-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
v8_version: ${{ steps.v8_version.outputs.version }}

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Set up Python
uses: actions/setup-python@v6
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d870656
with:
python-version: "3.14"

Expand Down Expand Up @@ -75,13 +75,13 @@ jobs:
target: aarch64-unknown-linux-musl

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Set up Bazel
uses: bazelbuild/setup-bazelisk@v3

- name: Set up Python
uses: actions/setup-python@v6
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d870656
with:
python-version: "3.14"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
push:
branches: [main]

permissions: read-all

Check warning on line 9 in .github/workflows/scorecard.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Replace "read-all" with specific permissions (e.g., "contents: read").

See more on https://sonarcloud.io/project/issues?id=KooshaPari_helios-cli&issues=AZ6P7kKvSoZLY4yF86HC&open=AZ6P7kKvSoZLY4yF86HC&pullRequest=595

jobs:
analysis:
Expand All @@ -29,7 +29,7 @@
results_format: sarif
publish_results: true

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v4@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: SARIF file
path: results.sarif
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Install Linux bwrap build dependencies
shell: bash
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/shell-tool-mcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
run: |
set -euo pipefail

version="${{ inputs.release-version }}"

Check failure on line 62 in .github/workflows/shell-tool-mcp.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

inputs.release-version is vulnerable to script injection: values of inputs are provided by whoever triggers the workflow. Change this workflow to not use user-controlled data directly in a run block, for example by assigning this expression to an environment variable.

See more on https://sonarcloud.io/project/issues?id=KooshaPari_helios-cli&issues=AZ6P7kJrSoZLY4yF86G5&open=AZ6P7kJrSoZLY4yF86G5&pullRequest=595
release_tag="${{ inputs.release-tag }}"

Check failure on line 63 in .github/workflows/shell-tool-mcp.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

inputs.release-tag is vulnerable to script injection: values of inputs are provided by whoever triggers the workflow. Change this workflow to not use user-controlled data directly in a run block, for example by assigning this expression to an environment variable.

See more on https://sonarcloud.io/project/issues?id=KooshaPari_helios-cli&issues=AZ6P7kJrSoZLY4yF86G6&open=AZ6P7kJrSoZLY4yF86G6&pullRequest=595

if [[ -z "$version" ]]; then
if [[ -n "$release_tag" && "$release_tag" =~ ^rust-v.+ ]]; then
Expand Down Expand Up @@ -209,7 +209,7 @@
fi

- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Build patched Bash
shell: bash
Expand Down Expand Up @@ -247,7 +247,7 @@
matrix: ${{ fromJSON(needs.billed-runner-policy.outputs.bash_darwin_matrix) }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Build patched Bash
shell: bash
Expand Down Expand Up @@ -345,7 +345,7 @@
fi

- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Build patched zsh
shell: bash
Expand Down Expand Up @@ -419,7 +419,7 @@
fi

- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Build patched zsh
shell: bash
Expand Down Expand Up @@ -485,7 +485,7 @@
PACKAGE_VERSION: ${{ needs.metadata.outputs.version }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Setup pnpm
uses: pnpm/action-setup@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stage-gates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
branches: ["**"]

permissions:
contents: read

Check warning on line 8 in .github/workflows/stage-gates.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Move this read permission from workflow level to job level.

See more on https://sonarcloud.io/project/issues?id=KooshaPari_helios-cli&issues=AZ6P7kLbSoZLY4yF86HG&open=AZ6P7kLbSoZLY4yF86HG&pullRequest=595
pull-requests: write

Check warning on line 9 in .github/workflows/stage-gates.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Move this write permission from workflow level to job level.

See more on https://sonarcloud.io/project/issues?id=KooshaPari_helios-cli&issues=AZ6P7kLbSoZLY4yF86HL&open=AZ6P7kLbSoZLY4yF86HL&pullRequest=595
security-events: write

Check warning on line 10 in .github/workflows/stage-gates.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Move this write permission from workflow level to job level.

See more on https://sonarcloud.io/project/issues?id=KooshaPari_helios-cli&issues=AZ6P7kLbSoZLY4yF86HM&open=AZ6P7kLbSoZLY4yF86HM&pullRequest=595

env:
STAGE: ""
Expand All @@ -26,7 +26,7 @@
- name: Detect stage from branch
id: detect
run: |
BRANCH="${{ github.head_ref }}"

Check failure on line 29 in .github/workflows/stage-gates.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

The expression github.head_ref can be set by an external actor to a specially crafted value, enabling script injection. Change this workflow to not use user-controlled data directly in a run block, for example by assigning this expression to an environment variable.

See more on https://sonarcloud.io/project/issues?id=KooshaPari_helios-cli&issues=AZ6P7kLbSoZLY4yF86HH&open=AZ6P7kLbSoZLY4yF86HH&pullRequest=595
case "$BRANCH" in
spike/*)
echo "stage=SP" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -397,7 +397,7 @@
fi
- name: Upload checksums
if: hashFiles('checksums.sha256') != ''
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: checksums
path: checksums.sha256
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/v8-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ jobs:
v8_version: ${{ steps.v8_version.outputs.version }}

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Set up Python
uses: actions/setup-python@v6
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d870656
with:
python-version: "3.14"

Expand Down Expand Up @@ -72,13 +72,13 @@ jobs:
target: aarch64-unknown-linux-musl

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Set up Bazel
uses: bazelbuild/setup-bazelisk@v3

- name: Set up Python
uses: actions/setup-python@v6
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d870656
with:
python-version: "3.14"

Expand Down
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@
"private": true,
"description": "Tools for repo-wide maintenance.",
"scripts": {
<<<<<<< HEAD
"lint": "oxlint .",
"format": "oxfmt --check *.json *.md docs/*.md .github/workflows/*.yml **/*.js",
"format:fix": "oxfmt --write *.json *.md docs/*.md .github/workflows/*.yml **/*.js"
=======
"format": "prettier --check *.json *.md docs/*.md .github/workflows/*.yml **/*.js",
"format:fix": "prettier --write *.json *.md docs/*.md .github/workflows/*.yml **/*.js",
"format:fix": "oxfmt --write *.json *.md docs/*.md .github/workflows/*.yml **/*.js",
"write-hooks-schema": "cargo run --manifest-path ./codex-rs/Cargo.toml -p codex-hooks --bin write_hooks_schema_fixtures"
>>>>>>> upstream_main
},
"devDependencies": {
"oxfmt": "^0.35.0",
Expand Down
Loading