Use Pulumi GitHub provider's getActionsRegistrationToken instead of raw API call
维护者通常 4 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 65/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- github, go
- 领域
- devops, infrastructure
调研方向
从 pkg/integrations/github/api.go 开始,这里通过直接调用 GitHub API 生成 runner 注册令牌。阅读 Pulumi GitHub provider 的 getActionsRegistrationToken 数据源文档,并追踪令牌生成如何融入 Pulumi 生命周期。完成的标准是替换直接调用,并处理 mapt destroy 时 runner 注销的行为。
由索引模型根据 Issue 内容生成。
描述
Runner registration tokens are currently generated via a raw HTTP call to the GitHub API (pkg/integrations/github/api.go), outside the Pulumi lifecycle. On mapt destroy, the VM is deleted but the runner is never deregistered from GitHub.
Replace with Pulumi's github.getActionsRegistrationToken (https://www.pulumi.com/registry/packages/github/api-docs/getactionsregistrationtoken/) data source. This ties token generation to the Pulumi stack and could enable automatic runner deregistration on destroy. This could also fix the stale runner / name collision problem.
Ref: https://github.com/redhat-developer/mapt/pull/831#discussion_r3499070440
- 主要语言
- Go
- 星标
- 25
- 派生
- 41
- 平均合并
- 5 天 3 小时
- 30 天内合并 PR
- 16
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
redhat-developer/mapt 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
redhat-developer/mapt#972 ·
维护者通常 4 天内回复
-
Host/username secret values contain trailing newlines, sanitization fix breaks SSH key可能重新可做 @abdulazeem-tk4vr 于 153 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
redhat-developer/mapt#817 · 12 条评论 ·
维护者通常 4 天内回复
-
openshift-snc: align cluster ingress domain with the nip.io access domain (crc.testing split-brain)未关闭
难度 5/5 一周以上 新手友好度 25/100
redhat-developer/mapt#968 · 1 个 reaction ·
维护者通常 4 天内回复
-
[enhancement] github runner: support just-in-time (JIT) runner configuration可能已有人在做 @atishay-kasliwal 于 1 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
redhat-developer/mapt#957 · 1 条评论 ·
维护者通常 4 天内回复
-
enhancement provider/IBMCLOUD
难度 4/5 3-5 天 新手友好度 25/100
redhat-developer/mapt#955 ·
维护者通常 4 天内回复
查看 redhat-developer/mapt 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
automated documentation maintenance
难度 1/5 1-3 小时 新手友好度 75/100
github/gh-aw-mcpg#16717 ·
维护者通常 1 天内回复
-
Docs: Recording rules pages don't say what happens to a recorded metric when its rule is deleted未关闭internal
难度 1/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 74/100
jesseduffield/lazygit#6229 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
prometheus/prometheus#20482 ·
维护者通常 2 天内回复