在 runner 中暴露内置 SPIRE CLI #52

Merged
panxiao81 merged 1 commits from fix/expose-spire-cli into main 2026-09-24 07:08:44 +00:00
Owner

问题

runner 虽然包含 /opt/spire/bin/spire-agent,但未加入 PATH,workflow 直接调用 spire-agent 会失败;identity smoke 还会重复下载 CLI。

修复

  • 将内置 spire-agent 暴露到 /usr/local/bin
  • identity smoke 固定使用 [self-hosted, pod]
  • smoke 直接验证镜像内 CLI 与真实 JWT-SVID,不再联网下载

验证

  • go test ./...
  • git diff --check
  • 合并后手动发布 runner 并运行 identity smoke
## 问题 runner 虽然包含 `/opt/spire/bin/spire-agent`,但未加入 PATH,workflow 直接调用 `spire-agent` 会失败;identity smoke 还会重复下载 CLI。 ## 修复 - 将内置 `spire-agent` 暴露到 `/usr/local/bin` - identity smoke 固定使用 `[self-hosted, pod]` - smoke 直接验证镜像内 CLI 与真实 JWT-SVID,不再联网下载 ## 验证 - `go test ./...` - `git diff --check` - 合并后手动发布 runner 并运行 identity smoke
panxiao81 added 1 commit 2026-09-24 07:08:10 +00:00
fix(runner): 暴露内置 SPIRE CLI
test / shell (pull_request) Successful in 40s
test / python (pull_request) Successful in 1m26s
test / go (pull_request) Successful in 4m46s
45be4a9fd9
panxiao81 merged commit 7921840604 into main 2026-09-24 07:08:44 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: panxiao81/gitea-dynamic-runner#52