Skip to content

Commit

Permalink
fix: added git safe directory in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
tomerh2001 authored Sep 30, 2023
1 parent 83f1d2e commit b5e3885
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ if [ -z "$SECRETS_KEY" ]; then
fi

git config --global --add safe.directory /repo
git config --global --add safe.directory /opt/atlassian/pipelines/agent/build
git config --global --add safe.directory ${PWD}

echo "$SECRETS_KEY" | base64 -d > /tmp/secrets.key
echo "Wrote secrets key to /tmp/secrets.key"

git-crypt unlock /tmp/secrets.key
rm -f /tmp/secrets.key
echo "Decrypted git-crypt files"
echo "Decrypted git-crypt files"

0 comments on commit b5e3885

Please sign in to comment.