Skip to content

Commit

Permalink
ci: Also work around git checkout security check
Browse files Browse the repository at this point in the history
See actions/checkout#760 (comment)

Nothing malicious is happening here, we are just using the checkout
with various UIDs for complex reasons.

The name of this script is now kind of wrong, but changing it
would require a ratchet with the CI config in openshift/release.
  • Loading branch information
cgwalters committed May 31, 2022
1 parent 9d5d660 commit fe25079
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ci/set-openshift-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ rm /tmp/passwd
# Not strictly required, but nice for debugging.
id
whoami

# Workaround for how we cache the cosa builds in Prow and juggle users,
# see also https://github.com/actions/checkout/issues/760#issuecomment-1097461496
if test -d src/config; then
git config --global --add safe.directory $PWD/src/config
fi

0 comments on commit fe25079

Please sign in to comment.