Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit 3878803

Browse files
Secure git push calls in PS #10
1 parent 4ee6c76 commit 3878803

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SubPointSolutions.CakeBuildTools/Scripts/SubPointSolutions.CakeBuild.Core.cake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,8 @@ var defaultActionDocsMerge = Task("Action-Docs-Merge")
13331333
string.Format("cd '{0}'", docsRepoFolder),
13341334
string.Format("git config http.sslVerify false"),
13351335
string.Format("git config --global push.default simple"),
1336-
string.Format("git push {0}", docsRepoPushUrl)
1336+
string.Format("git push {0} --quiet > null 2>&1", docsRepoPushUrl),
1337+
string.Format("return $LASTEXITCODE")
13371338
};
13381339

13391340
// writing a temporary PS file to avoid creds exposure in the build output

0 commit comments

Comments
 (0)