-
Notifications
You must be signed in to change notification settings - Fork 0
Fix Codex Cloud GitHub control plane #1849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
2ab6b2f
fix(codex): authenticate cloud GitHub workflow
BigSimmo 7979706
Merge remote-tracking branch 'refs/remotes/origin/main' into codex/cl…
BigSimmo 84a3da0
test(codex): match escaped shim path
BigSimmo 34e5581
fix(codex): reject plaintext GitHub auth
BigSimmo d318513
Merge branch 'main' into codex/cloud-github-control-plane
BigSimmo cc0b68e
fix(codex): keep Cloud PAT out of agent credentials
BigSimmo 6ba68ff
Merge remote-tracking branch 'refs/remotes/origin/codex/cloud-github-…
BigSimmo 9d7f0a7
fix(cloud): avoid empty shim PATH entry
BigSimmo 627deb8
fix(cloud): harden command shim path cleanup
BigSimmo 5c52359
Merge remote-tracking branch 'refs/remotes/origin/main' into codex/re…
BigSimmo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -Eeuo pipefail | ||
|
|
||
| fail() { | ||
| printf '[codex-cloud:base] ERROR: %s\n' "$*" >&2 | ||
| exit 1 | ||
| } | ||
|
|
||
| repo_root="$(git rev-parse --show-toplevel 2>/dev/null)" || fail "Run this script from the Database repository." | ||
| cd "$repo_root" | ||
|
|
||
| git fetch --quiet --no-tags origin '+refs/heads/main:refs/remotes/origin/main' || | ||
| fail "Could not refresh origin/main." | ||
|
|
||
| expected_base="$(git merge-base HEAD refs/remotes/origin/main 2>/dev/null)" || | ||
| fail "Could not determine the checkout merge base with origin/main." | ||
| [[ "$expected_base" =~ ^[0-9a-f]{40}$ ]] || fail "The checkout merge base is not a full Git commit SHA." | ||
|
|
||
| cache_dir="$HOME/.cache/clinical-kb-codex" | ||
| expected_base_file="$cache_dir/cloud-expected-base-sha" | ||
| mkdir -p "$cache_dir" | ||
| chmod 0700 "$cache_dir" | ||
| expected_base_candidate="$(mktemp "$cache_dir/.cloud-expected-base-sha.XXXXXX")" | ||
| trap 'rm -f "$expected_base_candidate"' EXIT | ||
| printf '%s\n' "$expected_base" > "$expected_base_candidate" | ||
| chmod 0600 "$expected_base_candidate" | ||
| mv -f "$expected_base_candidate" "$expected_base_file" | ||
| trap - EXIT | ||
|
|
||
| printf '[codex-cloud:base] PASS: expected_base=%s origin_main_refreshed=true\n' "$expected_base" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.