Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions helm/cicd/templates/task-update-manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ spec:
git config --global user.email "$(params.git_user_email)"
git config --global user.name "$(params.git_user_name)"

# Mark the repo directory as safe
git config --global --add safe.directory "$(workspaces.source.path)/$(params.git-root-directory)"

# Checkout target branch to avoid the detached HEAD state

git checkout $(params.target-branch)
Expand Down