Open
Conversation
Owner
|
感谢添加对多ID的支持。但建议移除 --app-secret 作为命令行直接参数的选项。 在当前的开发生态中,尤其是 AI Agent (如 Claude Code/Cursor) 直接调用 CLI 的模式下,命令行参数会完整记录在系统的 History、进程列表(ps)以及 AI 的对话上下文日志中,这存在极大的密钥泄露风险。 我的想法是在配置文件中以id:secret的字典格式存储账号-密钥对,在发布时使用--app-id来选择对应的账号。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(cli): 添加微信应用ID和密钥配置支持
添加了 --app-id 和 --app-secret 命令行选项用于微信发布功能,
支持通过环境变量 WECHAT_APP_ID 和 WECHAT_APP_SECRET 配置,
新增 .example.env 文件提供配置示例,
更新测试命令以支持环境变量文件加载