Skip to content

Commit 2ca6aaa

Browse files
martinszucclaude
andcommitted
Drop --user root from CI containers
Run as the container's default user (uid 1001) which matches the GitHub Actions runner user. Fixes permission-based tests that fail when running as root since root bypasses file permission checks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Martin Szuc <mszuc@redhat.com>
1 parent e30576f commit 2ca6aaa

4 files changed

Lines changed: 0 additions & 5 deletions

File tree

‎.github/workflows/build-test.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
runs-on: ubuntu-latest
1919
container:
2020
image: registry.access.redhat.com/ubi9/go-toolset:1.26
21-
options: --user root
2221
steps:
2322
- name: Checkout source code
2423
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # pin@v6.0.2

‎.github/workflows/golangci-lint.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
runs-on: ubuntu-latest
1414
container:
1515
image: registry.access.redhat.com/ubi9/go-toolset:1.26
16-
options: --user root
1716
steps:
1817
- name: Checkout
1918
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # pin@v6.0.2

‎.github/workflows/govulncheck.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
runs-on: ubuntu-latest
2020
container:
2121
image: registry.access.redhat.com/ubi9/go-toolset:1.26
22-
options: --user root
2322
steps:
2423
- name: Checkout
2524
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # pin@v6.0.2

‎.github/workflows/release.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
runs-on: ubuntu-latest-16-cores
2121
container:
2222
image: registry.access.redhat.com/ubi9/go-toolset:1.26
23-
options: --user root
2423
steps:
2524
- name: Checkout source code
2625
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # pin@v6.0.2
@@ -81,7 +80,6 @@ jobs:
8180
if: github.ref == 'refs/heads/main' && github.repository == 'helm/helm'
8281
container:
8382
image: registry.access.redhat.com/ubi9/go-toolset:1.26
84-
options: --user root
8583
steps:
8684
- name: Checkout source code
8785
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # pin@v6.0.2

0 commit comments

Comments
 (0)