Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
fix ci git permission
Browse files Browse the repository at this point in the history
add src  to safe dir
refer: https://github.blog/2022-04-12-git-security-vulnerability-announced/

Signed-off-by: bingshen.wbs <[email protected]>
  • Loading branch information
BSWANG authored and DrmagicE committed Apr 14, 2022
1 parent 1d5fad0 commit ff79373
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ jobs:
- name: Build and push
env:
REPO: ${{ env.ALI_REGISTRY }}
run: make REPO=$REPO push
run: make REPO=$REPO push
if: ${{ github.event_name != 'pull_request' && github.event.action != 'unassigned' }}
1 change: 1 addition & 0 deletions hack/lib/release-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ build_multi_arch_binaries() {
apk --no-cache add bash git; \
cd /opt/src; umask 0022; \
rm -rf ${YURT_BIN_DIR}/* ;"
sub_commands+="git config --global --add safe.directory /opt/src; "
sub_commands+="GOARCH=amd64 bash ./hack/make-rules/build.sh ${bin_target}; "
sub_commands+="chown -R $(id -u):$(id -g) /opt/src/_output"

Expand Down

0 comments on commit ff79373

Please sign in to comment.