gh secret delete
gh secret delete <secret-name> [flags]
删除以下级别之一的密钥:
- 仓库(默认):对仓库中的 GitHub Actions 运行或 Dependabot 可用
- 环境:对仓库中部署环境的 GitHub Actions 运行可用
- 组织:对组织内的 GitHub Actions 运行、Dependabot 或 Codespaces 可用
- 用户:对你的用户的 Codespaces 可用
选项
-a,--app <string>- 删除特定应用程序的密钥:{actions|codespaces|dependabot}
-e,--env <string>- 删除环境的密钥
-o,--org <string>- 删除组织的密钥
-u,--user- 删除你的用户的密钥
从父命令继承的选项
-R,--repo <[HOST/]OWNER/REPO>- 使用 [HOST/]OWNER/REPO 格式选择另一个仓库
别名
gh secret remove