openai / openai/codex-action

No suport of env vars in main action

Open
#42 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.2k
Forks
170
PR merge metrics
No merged PRs in 30d

Description

Codex doesn't have access to env vars defined either in the step or job level, e.g.:

- name: Run Codex to assess the plan  
  id: codex_assess  
  uses: openai/codex-action@main  
  env:  
    GH_TOKEN: ${{ steps.generate_token.outputs.token }} 

If my prompt instructs to use gh, Codex will fail because:

bash -lc 'gh issue view 47 --json number,title,body,state,assignees,author,labels,comments' in /home/runner/work/my/repo exited 4 in 2.24s:
gh: To use GitHub CLI in a GitHub Actions workflow, set the GH_TOKEN environment variable. Example:
  env:
    GH_TOKEN: ${{ github.token }}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the action launches Codex and which environment is passed from the GitHub Actions step and job. Reproduce the reported gh issue view failure, then verify that configured variables such as GH_TOKEN reach the command and that the example workflow succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.