Skip to content
This repository was archived by the owner on Sep 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/pullfrog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ jobs:
uses: pullfrog/pullfrog@v0

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 security Third-party action pinned to a mutable floating tag

pullfrog/pullfrog@v0 uses 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.

Suggested change
uses: pullfrog/pullfrog@v0
uses: pullfrog/pullfrog@<COMMIT-SHA> # pin to a specific commit SHA

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Redundant model specification

The model is specified twice: once in with: model: (which the Pullfrog action reads directly) and again in env: PULLFROG_MODEL:. If these two values ever diverge during maintenance, the effective model may differ from what is documented in the workflow. Pick one authoritative source.

Suggested change
with:
prompt: ${{ inputs.prompt }}
model: zai-coding-plan/glm-5.2
env:
PULLFROG_MODEL: zai-coding-plan/glm-5.2
with:
prompt: ${{ inputs.prompt }}
model: zai-coding-plan/glm-5.2
env:
# PULLFROG_MODEL: zai-coding-plan/glm-5.2 # redundant if with: model: is the canonical source

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 }}
Expand Down
32 changes: 32 additions & 0 deletions opencode.json
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

To ensure OpenCode automatically selects the newly configured zai-coding-plan/glm-5.2 model as the default model for both primary and lightweight tasks, you should explicitly define the model and small_model keys in the root of the configuration. Without these, OpenCode may fail to resolve a default model or attempt to use an unavailable provider.

{
  "$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"

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 Non-standard reasoningEffort value

"xhigh" is not a recognized value in the OpenAI-compatible API spec — the valid options are "low", "medium", and "high". When @ai-sdk/openai-compatible forwards this to the Z.AI endpoint, the API will either reject every agent request with a 400-series error or silently drop the field and run without any reasoning constraint. If Z.AI does support a custom "xhigh" tier, a comment citing their docs would clarify the intent; otherwise "high" is the correct value to use here.

}
}
}
}
}
}
}
}
Loading