Skip to content

build.sh: Fix persmissions when building with GH actions#889

Merged
miczyg1 merged 2 commits into
dasharo-25.12from
ci_fix_25.12
May 15, 2026
Merged

build.sh: Fix persmissions when building with GH actions#889
miczyg1 merged 2 commits into
dasharo-25.12from
ci_fix_25.12

Conversation

@miczyg1
Copy link
Copy Markdown
Contributor

@miczyg1 miczyg1 commented May 14, 2026

The GH runners have UID 1001, while user coreboot in SDK has id 1000. This creates a mismatch of IDs and causes permission problems when mounting coreboot git repository under /home/coreboot/coreboot in the container, because the /home/coreboot is a HOME directory of different user.

To fix the problem, move the mountpoint to a "neutral" place, where permissions should not be a an issue. The /build directory is chosen so that it does not collide with any HOME directory or system directory.

@miczyg1 miczyg1 requested a review from SergiiDmytruk May 14, 2026 10:58
@miczyg1 miczyg1 force-pushed the ci_fix_25.12 branch 3 times, most recently from 61eb95b to 54ff308 Compare May 14, 2026 14:30
Copy link
Copy Markdown
Member

@SergiiDmytruk SergiiDmytruk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. By the way, I don't get this part of CI (visible here):

${{ env.GH_USERNAME }}:${{ secrets.GH_TOKEN }}

I think it should be just $GH_USERNAME:$GH_TOKEN.

@SergiiDmytruk SergiiDmytruk mentioned this pull request May 14, 2026
@miczyg1
Copy link
Copy Markdown
Contributor Author

miczyg1 commented May 15, 2026

LGTM. By the way, I don't get this part of CI (visible here):

${{ env.GH_USERNAME }}:${{ secrets.GH_TOKEN }}

I think it should be just $GH_USERNAME:$GH_TOKEN.

I tired to fix cloning osfv repo, let my try it

miczyg1 added 2 commits May 15, 2026 09:42
The GH runners have UID 1001, while user coreboot in SDK has id 1000.
This creates a mismatch of IDs and causes permission problems when
mounting coreboot git repository under /home/coreboot/coreboot in the
container, because the /home/coreboot is a HOME directory of different
user.

To fix the problem, move the mountpoint to a "neutral" place, where
permissions should not be a an issue. The /build directory is chosen
so that it does not collide with any HOME directory or system directory.

Upstream-Status: Inappropriate [Dasharo CI]
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Using iPXE master revision may lead to unreproducible builds.
Make sure the iPXE is buitl from a fixed revision pointed by
IPXE_STABLE option.

Upstream-Status: Inappropriate [Dasharo downstream]
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
@miczyg1 miczyg1 merged commit 5b77741 into dasharo-25.12 May 15, 2026
11 of 39 checks passed
@miczyg1 miczyg1 deleted the ci_fix_25.12 branch May 15, 2026 08:00
@miczyg1
Copy link
Copy Markdown
Contributor Author

miczyg1 commented May 15, 2026

LGTM. By the way, I don't get this part of CI (visible here):

${{ env.GH_USERNAME }}:${{ secrets.GH_TOKEN }}

I think it should be just $GH_USERNAME:$GH_TOKEN.

I tired to fix cloning osfv repo, let my try it

Nah, it still didn't fix it: https://github.com/Dasharo/coreboot/compare/1d9f3c0be80264f2bf68e17ba1babdaba0ceab85..de39f9a776ede1fc3d4792673789e06563a6c338

Locally the access token works perfectly though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants