docs: add GitHub MCP Actions example - #126
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
There was a problem hiding this comment.
💡 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".
| issues: write | ||
| pull-requests: write | ||
| steps: | ||
| - uses: actions/checkout@v5 |
There was a problem hiding this comment.
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 👍 / 👎.
fbe96ae to
ba28f7a
Compare
Summary
codex-homeconfig and PR-review prompt that can use GitHub MCP tools to add review commentsValidation
git diff --checkpnpm run checkpnpm testCloses #60