-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcodex-fast-pay.yml
More file actions
61 lines (51 loc) · 1.95 KB
/
codex-fast-pay.yml
File metadata and controls
61 lines (51 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Codex Fast Pay
on:
workflow_dispatch:
permissions:
contents: read
pull-requests: write
jobs:
fast-pay-review:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Write Codex MCP config
env:
MARKETPLACE_API_BASE_URL: ${{ secrets.MARKETPLACE_API_BASE_URL }}
MARKETPLACE_FAST_NETWORK: ${{ secrets.MARKETPLACE_FAST_NETWORK }}
FAST_PRIVATE_KEY: ${{ secrets.FAST_PRIVATE_KEY }}
FAST_MARKETPLACE_CONFIG: ${{ github.workspace }}/examples/fast-marketplace.ci.config.json
run: |
mkdir -p .codex
cat > .codex/config.toml <<EOF
[mcp_servers.fast-pay]
command = "npx"
args = ["tsx", "packages/mcp/src/index.ts"]
[mcp_servers.fast-pay.env]
MARKETPLACE_API_BASE_URL = "${MARKETPLACE_API_BASE_URL}"
MARKETPLACE_FAST_NETWORK = "${MARKETPLACE_FAST_NETWORK}"
FAST_PRIVATE_KEY = "${FAST_PRIVATE_KEY}"
FAST_MARKETPLACE_CONFIG = "${FAST_MARKETPLACE_CONFIG}"
EOF
- name: Run Codex with Fast marketplace MCP
uses: openai/codex-action@v1
with:
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
codex-home: ${{ github.workspace }}/.codex
prompt: |
Review this pull request with Fast marketplace tools enabled.
Constraints:
- Use Fast tools only for the approved route refs in the CI config.
- For sync external research, prefer `tavily.search`.
- For async SERP enrichment, call `apify-google-search.search-results`.
- Poll async jobs before concluding.
- Summarize any external findings directly in the PR response.
safety-strategy: drop-sudo