Repository navigation
ci: configure Pullfrog for Z.AI Coding Plan #8
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -29,7 +29,12 @@ jobs: | |||||||||||||||||||||
| uses: pullfrog/pullfrog@v0 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| prompt: ${{ inputs.prompt }} | ||||||||||||||||||||||
| model: zai-coding-plan/glm-5.2 | ||||||||||||||||||||||
| env: | ||||||||||||||||||||||
| PULLFROG_MODEL: zai-coding-plan/glm-5.2 | ||||||||||||||||||||||
|
Comment on lines
+30
to
+34
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The model is specified twice: once in
Suggested change
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
||||||||||||||||||||||
| OPENCODE_CONFIG: ${{ github.workspace }}/opencode.json | ||||||||||||||||||||||
| ZAI_API_KEY: ${{ secrets.ZAI_API_KEY }} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| # add at least one provider API key | ||||||||||||||||||||||
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | ||||||||||||||||||||||
| CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| { | ||
| "$schema": "https://opencode.ai/config.json", | ||
| "enabled_providers": [ | ||
| "zai-coding-plan" | ||
| ], | ||
| "provider": { | ||
|
Comment on lines
+1
to
+6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To ensure OpenCode automatically selects the newly configured {
"$schema": "https://opencode.ai/config.json",
"enabled_providers": ["zai-coding-plan"],
"model": "zai-coding-plan/glm-5.2",
"small_model": "zai-coding-plan/glm-5.2",
"provider": { |
||
| "zai-coding-plan": { | ||
| "npm": "@ai-sdk/openai-compatible", | ||
| "name": "Z.AI Coding Plan", | ||
| "options": { | ||
| "baseURL": "https://api.z.ai/api/coding/paas/v4", | ||
| "apiKey": "{env:ZAI_API_KEY}" | ||
| }, | ||
| "models": { | ||
| "glm-5.2": { | ||
| "name": "GLM 5.2", | ||
| "limit": { | ||
| "context": 1000000, | ||
| "output": 131072 | ||
| }, | ||
| "options": { | ||
| "aisdk": { | ||
| "request": { | ||
| "reasoningEffort": "xhigh" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pullfrog/pullfrog@v0uses a mutable version tag. Any update pushed to that tag — including a malicious one — is silently picked up on the next run. Pin to a full commit SHA to protect against this supply-chain vector.