Skip to content

Commit 54170a4

Browse files
gcp-cherry-pick-bot[bot]dudoishitasequeira
authoredMar 4, 2025··
fix: make codegen permissions (cherry-pick #21667) (#22145)
Signed-off-by: Brett C. Dudo <brett@dudo.io> Signed-off-by: Brett Dudo <brett@dudo.io> Co-authored-by: Brett Dudo <brett@dudo.io> Co-authored-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com>

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎test/container/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,15 @@ RUN userdel -r ubuntu && \
103103
HOME=/home/user git config --global user.name "ArgoCD Test User" && \
104104
HOME=/home/user git config --global user.email "noreply@example.com" && \
105105
HOME=/home/user git config --global --add safe.directory '*' && \
106+
mkdir -p /go/src && \
106107
mkdir -p /go/pkg && \
108+
chown -R user:user /go && \
107109
mkdir -p /var/run/sshd && \
108110
mkdir -p /root/.ssh && \
109-
mkdir -p /go && \
110111
chown root /etc/ssh/ssh_host_*_key* && \
111112
chmod 0600 /etc/ssh/ssh_host_*_key && \
112113
mkdir -p /tmp/go-build-cache && \
114+
chown -R user:user /tmp/go-build-cache && \
113115
ln -s /usr/local/bin/node /usr/local/bin/nodejs && \
114116
ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm && \
115117
ln -s /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx && \

0 commit comments

Comments
 (0)
Please sign in to comment.