Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

🤖 verification skills: harden check.sh and verify.sh argument and file handling (#391 follow-ups)

已关闭 适合新手
#392 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
76/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
bash
领域
devops, tooling

调研方向

阅读 hack/formal/aigatewaykey/check.sh 和 .mux/skills/verify-coder-k8s/scripts/verify.sh。检查 check.sh 如何解析 --config、--out 和 --set,然后检查 load_run 以及 verify.sh 中的 EXIT 陷阱。完成标准:缺少选项值时以退出码 2 退出;如果 run.env 是符号链接,或具有组或其他用户的写权限,则将其拒绝;并且当 VERIFY_RUN_DIR 中含有单引号时,陷阱处理仍能正常工作;issue 中没有提及测试或运行命令。

由索引模型根据 Issue 内容生成。

描述

Follow-ups from Codex review round 4 on #391. Under the review limit for #391 (rounds 4 to 6 fix blockers only), I judged these minor and deferred them.

  1. hack/formal/aigatewaykey/check.sh: --config, --out or --set as the last argument exits 1 ("unbound variable"). Exit 1 means a rule violation. A malformed call must exit 2. Fix: check that each option has a value before reading $2.
  2. .mux/skills/verify-coder-k8s/scripts/verify.sh load_run: before it sources run.env, check that the file is a regular file (not a symlink) with no group or other write bits. Launch creates it with mode 0600 in a private run dir, so this matters only after someone changes its mode.
  3. verify.sh EXIT traps (coder-api port-forward, temp files): the traps build shell code from expanded paths. A ' in VERIFY_RUN_DIR breaks the trap and leaves the port-forward running. Use a trap function that reads already-set variables.

Trigger: the next change to either script.


Generated with mux • Model: anthropic:claude-opus-5-5 • Thinking: high

主要语言
Go
星标
5
派生
3
平均合并
2 小时 56 分钟
30 天内合并 PR
185

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

coder/coder-k8s 的其他 Issue

查看 coder/coder-k8s 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。