ci(bluebuild): chown /etc/sudo* to root before sudo (userns=host fix)
Some checks failed
Build veilor-os OCI (BlueBuild) / Build + push OCI (push) Failing after 49s
Some checks failed
Build veilor-os OCI (BlueBuild) / Build + push OCI (push) Failing after 49s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
5107d656c1
commit
265cac024e
1 changed files with 9 additions and 0 deletions
9
.github/workflows/build-bluebuild.yml
vendored
9
.github/workflows/build-bluebuild.yml
vendored
|
|
@ -55,6 +55,15 @@ jobs:
|
||||||
# Pinned to last v4 tag confirmed to ship on node20.
|
# Pinned to last v4 tag confirmed to ship on node20.
|
||||||
uses: actions/checkout@v4.1.7
|
uses: actions/checkout@v4.1.7
|
||||||
|
|
||||||
|
- name: Fix sudo perms (userns=host artefact)
|
||||||
|
run: |
|
||||||
|
# Daemon has userns-remap=default; the act job container is
|
||||||
|
# launched with --userns=host. The image was pulled under
|
||||||
|
# remap so /etc/sudo.conf + /etc/sudoers ship as uid 100000.
|
||||||
|
# sudo refuses to read either unless owned by uid 0. Restore.
|
||||||
|
chown -R 0:0 /etc/sudo.conf /etc/sudoers /etc/sudoers.d 2>/dev/null || true
|
||||||
|
ls -la /etc/sudo.conf /etc/sudoers 2>&1 | head -5
|
||||||
|
|
||||||
- name: Install build tooling (Fedora)
|
- name: Install build tooling (Fedora)
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue