Commit 4584b75
authored
fix(gh-cli): use numeric USER 1000 so kubelet runAsNonRoot validates (#5)
## Summary
Pods running this image with `securityContext.runAsNonRoot: true` fail
to start: `container has runAsNonRoot and image has non-numeric user
(gh), cannot verify user is non-root`. Kubelet can only validate
non-root from a numeric UID in the image config.
The `gh` user is already created with UID 1000 in the same `RUN`; just
switch the `USER` directive to `1000`.
## Pairs with
- `kustomize-cluster` PR — `bootstrap/ci-token-sync-job.yaml` Job uses
this image and sets `runAsNonRoot: true`.
## Test plan
- [x] Image still runs as the `gh` user (UID 1000, same shell, same
`WORKDIR /home/gh`)
- [x] After merge + image rebuild: `ci-token-sync` Job in argocd ns runs
to completion
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent 08e66ab commit 4584b75
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
0 commit comments