fix(ci): reclaim aur-repo ownership after docker chown #49
Reference in New Issue
Block a user
Delete Branch "fix/aur-publish-permission"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Push to AURstep inpublish-aur.ymlfailing witherror: could not lock config file .git/config: Permission denied(e.g. run 24195384571).chown -R builduser:builduser /pkg, which propagates through the bind mount and transfers ownership of the host'saur-repo/(including.git/) to the container's builduser UID. When control returns to the runner user,git config user.namecan no longer write.git/configand the step exits 255.sudo chown -R "$(id -u):$(id -g)" .immediately after the docker block, before any host-side git ops.Test plan
mainand confirm thePublish to AURjob reachesgit push origin masterwithout a permission error..SRCINFOandPKGBUILDland on the AUR repo as expected.🤖 Generated with Claude Code