develop
master
為 code-action-docker 新增「開發中需要參數時的來源優先序」規則,並將 plugin 版本升為 0.0.3(三家 manifest 同步)。
code-action-docker
實作過程中發現需要 inputs 沒有的參數時,依序尋找來源,前者可用就不往後找:
inputs
${{ gitea.* }}
GITHUB_*
GITEA_*
process.env
${{ secrets.* }}
${{ vars.* }}
action.yml
並附註實務限制:secrets.*/vars.* 無法在 action.yml 的 inputs.default 直接引用,須由呼叫端 workflow 以 with:/env: 傳入;README 使用範例需示範帶入方式,機敏值不落地、log 遮蔽。
secrets.*
vars.*
inputs.default
with:
env:
skills/code-action-docker/SKILL.md
README.md
plugin.json
.claude-plugin/plugin.json
.codex-plugin/plugin.json
version
0.0.2
0.0.3
code-action-composite
code-image
🤖 Generated with Claude Code
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
No dependencies set.
The note is not visible to the blocked user.
變更摘要
為
code-action-docker新增「開發中需要參數時的來源優先序」規則,並將 plugin 版本升為 0.0.3(三家 manifest 同步)。參數來源優先序(新增於階段 4.0)
實作過程中發現需要
inputs沒有的參數時,依序尋找來源,前者可用就不往後找:${{ gitea.* }}context — docker action 執行期對應 runner 注入的GITHUB_*/GITEA_*環境變數,主程式直接讀process.env。${{ secrets.* }}— repo/org secrets(機敏值)。${{ vars.* }}— repo/org variables(非機敏設定值)。inputs(加入則回到階段 2 補齊規格並同步action.yml),不得臆測預設值或硬編碼。並附註實務限制:
secrets.*/vars.*無法在action.yml的inputs.default直接引用,須由呼叫端 workflow 以with:/env:傳入;README 使用範例需示範帶入方式,機敏值不落地、log 遮蔽。影響範圍
skills/code-action-docker/SKILL.md(+12/−1):新增階段 4.0 參數來源優先序;frontmatter description 同步。README.md(+1/−1):code-action-docker章節第 (4) 點補上優先序說明。plugin.json、.claude-plugin/plugin.json、.codex-plugin/plugin.json:version由0.0.2升為0.0.3。風險或注意事項
code-action-composite/code-image無對應規則需求,未更動。Commits
🤖 Generated with Claude Code