Answer: In your GitHub repository, open Settings → Secrets and variables → Actions, select New repository secret, and enter CODEX_SECURITY_API_KEY as the name with your OpenAI API key as the value, then save the secret. Status: Confirmed Entry: tool/codex/integrations/add-api-key-secret-github-actions Revision: 1 Digest: sha256:5f37b2e6e7831960 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:53:03Z Last changed: 2026-11-13T03:53:03Z Last verified: 2026-11-20T13:41:35Z Next check: 2026-11-21T13:41:35Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Secret name | CODEX_SECURITY_API_KEY | [1] | 2026-11-20 Settings path | Settings → Secrets and variables → Actions | [1] | 2026-11-20 Action to select | New repository secret | [1] | 2026-11-20 Sources: [1] OpenAI. "Run Codex Security in GitHub Actions". https://learn.chatgpt.com/docs/security/cli/ci/github.md Role: primary. Accessed: 2026-11-20T13:41:35Z Quote: "Enter `CODEX_SECURITY_API_KEY` as the name and paste your OpenAI API key as" (Supports: Secret name) Quote: "In your GitHub repository, open **Settings → Secrets and variables → Actions**." (Supports: Settings path) Quote: "Select **New repository secret**." (Supports: Action to select) Snapshot SHA-256: 888cc3aa1b06e72f841c1ac8e201b76e37e0cab0f271a9c0421448ba14709e5e (captured 2026-11-13T03:53:03Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:53:03Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:41:35Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:41:35Z Last attempt: 2026-11-20T13:41:35Z Notes and limitations: Extracted automatically from a single official source (section "Prepare the workflow"). Related: https://latestn.com/tool/codex/integrations/app-server-production-support Is the Codex app server supported for production workloads? https://latestn.com/tool/codex/integrations/authenticate-codex-vertex-ai How do I authenticate Codex on the host machine to use Google Cloud Vertex AI? https://latestn.com/tool/codex/integrations/capture-outputs How do I capture outputs from the Codex GitHub Action in my workflow? https://latestn.com/tool/codex/install-and-setup/set-up-mobile-access How do I set up Codex on mobile to connect to my computer? https://latestn.com/tool/codex/install-and-setup/windows-version-matrix What Windows versions are supported for the Codex sandbox? https://latestn.com/tool/codex/install-and-setup/wsl-version-support Which WSL version does Codex support, and is WSL1 still supported? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:53:03Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/integrations/add-api-key-secret-github-actions/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/codex/integrations/add-api-key-secret-github-actions POST: https://latestn.com/dispute/tool/codex/integrations/add-api-key-secret-github-actions with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/integrations/add-api-key-secret-github-actions?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I add my OpenAI API key as a secret for the Codex Security Action in GitHub Actions? Revision 1, last verified 2026-11-20T13:41:35Z. https://latestn.com/tool/codex/integrations/add-api-key-secret-github-actions (accessed 2026-11-21T09:53:39Z). @misc{LatestN_tool_codex_integrations_add_api_key_secret_github_actions_r1, title = {How do I add my OpenAI API key as a secret for the Codex Security Action in GitHub Actions?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/integrations/add-api-key-secret-github-actions}}, note = {Revision 1; digest sha256:5f37b2e6e7831960; last verified 2026-11-20T13:41:35Z; accessed 2026-11-21T09:53:39Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/codex/integrations/add-api-key-secret-github-actions