Skip to content

Commit 37e6164

Browse files
committed
redact repo URLs that contain secrets
1 parent 439f63e commit 37e6164

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Sources/SymbolGraphBuilder/Builds/SSGC.Checkout.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,14 @@ extension SSGC.Checkout
4545
try clone.remove()
4646
}
4747

48-
print("Pulling repository from remote: \(repository)")
48+
if repository.starts(with: "https://x-access-token:")
49+
{
50+
print("WARNING: redacted repository URL because it contains an access token.")
51+
}
52+
else
53+
{
54+
print("Pulling repository from remote: \(repository)")
55+
}
4956

5057
if clone.exists()
5158
{

0 commit comments

Comments
 (0)