mirror of
https://github.com/actions/checkout.git
synced 2025-11-05 11:58:20 +08:00
.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -o pipefail
|
||||
|
||||
if [ ! -f "./submodules-true/regular-file.txt" ]; then
|
||||
echo "Expected regular file does not exist"
|
||||
@@ -19,7 +20,7 @@ echo "Testing persisted credential"
|
||||
pushd ./submodules-true/submodule-level-1
|
||||
|
||||
# Check if credentials are configured
|
||||
git config --list | grep -q "http.*extraheader"
|
||||
git config list | grep -q "http.*extraheader"
|
||||
if [ "$?" != "0" ]; then
|
||||
echo "Failed to validate persisted credential - no http extraheader found"
|
||||
popd
|
||||
@@ -27,7 +28,7 @@ if [ "$?" != "0" ]; then
|
||||
fi
|
||||
|
||||
# Try to ls-remote to validate credentials work
|
||||
git ls-remote origin
|
||||
git ls-remote origin | head
|
||||
if [ "$?" != "0" ]; then
|
||||
echo "Failed to validate persisted credential - git ls-remote failed"
|
||||
popd
|
||||
|
||||
Reference in New Issue
Block a user