Skip to content

docs: add GitHub MCP Actions example - #126

Open
pollychen-lab wants to merge 1 commit into
openai:mainfrom
pollychen-lab:agent/github-mcp-actions-docs
Open

docs: add GitHub MCP Actions example#126
pollychen-lab wants to merge 1 commit into
openai:mainfrom
pollychen-lab:agent/github-mcp-actions-docs

Conversation

@pollychen-lab

Copy link
Copy Markdown

Summary

  • document how to configure the hosted GitHub MCP server for Codex inside a GitHub Actions workflow
  • show a temporary codex-home config and PR-review prompt that can use GitHub MCP tools to add review comments
  • link to the official GitHub MCP Server Codex installation guide for current token and server options

Validation

  • git diff --check
  • pnpm run check
  • pnpm test

Closes #60

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@pollychen-lab

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Aug 7, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fbe96aefd6

ℹ️ 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".

Comment thread README.md
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v5

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Disable persistence of the write-capable job token

When a maintainer reopens an external PR or otherwise triggers this workflow against untrusted PR content, actions/checkout@v5 persists the job's github.token in Git configuration by default. Because this same job grants issues: write and pull-requests: write, Codex can recover a write-capable credential from the checkout even if token-like environment variables are filtered, bypassing the intended least-privilege GITHUB_MCP_TOKEN boundary. Configure checkout with persist-credentials: false and avoid granting write permissions to the unused job token.

Useful? React with 👍 / 👎.

@pollychen-lab
pollychen-lab force-pushed the agent/github-mcp-actions-docs branch from fbe96ae to ba28f7a Compare August 7, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to install MCP with OpenAI Codex Actions

1 participant