Skip to content

ci: 部署增加飞书交互式富卡片通知 - #4

Merged
HyxiaoGe merged 1 commit into
masterfrom
ci/feishu-deploy-card
Jun 6, 2026
Merged

HyxiaoGe merged 1 commit into
masterfrom
ci/feishu-deploy-card

Conversation

@HyxiaoGe

@HyxiaoGe HyxiaoGe commented Jun 6, 2026

Copy link
Copy Markdown
Owner

改动

部署 job 末尾追加飞书 interactive 富卡片通知,与 audio 两仓(已上线)逐字同款:

  • 成功绿头 / 失败红头,标题含仓库名(if: always() 故成功失败都发)
  • 提交信息(前 3 非空行 / 截 240 字)+ 分支 / 提交 / 结果 / 时间四宫格
  • 「查看运行日志」按钮;关键词 UptimeKuma 在脚注 note(满足基础设施群 bot 关键词过滤)

安全

提交信息 ${{ github.event.head_commit.message }} 仅经 env→python(os.environ→json.dumps),绝不进 shell,杜绝注入。空 webhook 守卫 + continue-on-error:未配 secret / 飞书故障都不影响部署判定。

验证

PyYAML 解析 + 抽 run 脚本 bash 真跑:run 与 audio 黄金版逐字一致、空守卫生效、不可达 webhook 优雅失败、注入字符零逃逸。

🤖 Generated with Claude Code

部署 job 末尾追加飞书 interactive 卡片通知,与 audio 两仓同款:
- 成功绿头/失败红头,标题含仓库名
- 提交信息(前3非空行/截240字)+ 分支/提交/结果/时间四宫格
- 「查看运行日志」按钮;关键词 UptimeKuma 在脚注 note
- 提交信息只经 env→python(os.environ→json),绝不进 shell,杜绝注入
- 空 webhook 守卫 + continue-on-error,未配 secret/飞书故障都不影响部署

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@HyxiaoGe
HyxiaoGe merged commit 390c3eb into master Jun 6, 2026
1 check passed
@HyxiaoGe
HyxiaoGe deleted the ci/feishu-deploy-card branch June 6, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant