On Thu, 2025-09-04 at 12:49 +0200, 'Nicolas Dechesne' via kas-devel
wrote:
Hi,
I briefly checked the output and it seems like the job is writing to
directories which are owned by root. As the kas container image
switches the user in the entrypoint [1], the github script is probably
executed under the builder user. That won't work.
>
> When using
> container:
> image: debian:trixie
> Everything works fine.
Here you're running as root :)
>
> Would anyone have any hint about this and how to overcome this
> problem?
What we usually do on GitHub is do simply use the kas-container script.
Here's an example how to do that: [2]
[1]
https://github.com/siemens/kas/blob/master/container-entrypoint
[2]
https://github.com/siemens/meta-iot2050/blob/master/.github/workflows/main.yml#L78
Best regards,
Felix
>
> Using KAS container for our builds would make things much easier than
> starting from the default debian container.
>
> thanks!
--
Siemens AG
Linux Expert Center
Friedrich-Ludwig-Bauer-Str. 3
85748 Garching, Germany