加密项目环境命令
pinset env identity export
把密钥库 identity 导出为明文,主要用于受明确保护的 CI Secret。
在 GitHub 查看源文档 ↗| 字段 | 说明 |
|---|---|
| 用途 | 把密钥库 identity 导出为明文,主要用于受明确保护的 CI Secret。 |
| 语法与参数 | pinset env identity export <id> --output <路径> --allow-plaintext。 |
| 修改状态 | 是。 创建新的仅当前用户可读明文文件,永远不覆盖。 |
| 示例 | pinset env identity export 4c5652e4-... --output ./ci-identity.txt --allow-plaintext |
| JSON | 不支持。 |
| 关键错误 | 缺少同意标志、ID 未知、密钥库失败、输出已存在或权限收紧失败。 |
把文件内容复制到 CI Secret 后应安全删除。永远不要提交该文件,也不要把私有 identity 作为命令行参数。
/docs/commands/env-identity-exportPinset 2.1