[codex] Harden GitHub Actions permissions#27
Open
jbeckwith-oai wants to merge 1 commit into
Open
Conversation
c3ea699 to
68b6fd4
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 68b6fd4963
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
68b6fd4 to
582d8e4
Compare
HAYDEN-OAI
approved these changes
Jul 14, 2026
HAYDEN-OAI
left a comment
There was a problem hiding this comment.
nice hardening pass. i checked the workflow trust boundaries, token scopes, stainless git runtime config, action sha pins, and the upload path; the earlier exact-200 issue is fixed at this head. looks good to me.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Harden the GitHub Actions configuration based on the workflow security audit:
GITHUB_TOKENpermissions for CI.contents: writefrom the release-creation dispatcher.GIT_CONFIG_*environment variables instead of writing credentials to runner home config.Validation
actionlintbash -n scripts/utils/upload-artifact.shuses:referencesgit diff --checkGIT_CONFIG_*URL rewriteNotes
All external GitHub Actions references remain pinned to full commit SHAs.