Skip to content

Commit ad136ee

Browse files
DSchauGatsbyJS Bot
authored and
GatsbyJS Bot
committed
fix(ci): silence output from clone (#17096)
* fix(ci): silence output from clone * chore: log all the things
1 parent be68b02 commit ad136ee

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scripts/clone-and-validate-theme-starters.sh

100644100755
+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ for folder in "themes/gatsby-starter-blog-theme" "themes/gatsby-starter-notes-th
2020
if [ "$CLONE" = true ]; then
2121
# clone, delete files in the clone, and copy (new) files over
2222
# this handles file deletions, additions, and changes seamlessly
23-
git clone --depth 1 https://$GITHUB_API_TOKEN@github.com/gatsbyjs/$NAME.git $CLONE_DIR
23+
# note: redirect output to dev/null to avoid any possibility of leaking token
24+
git clone --depth 1 https://$GITHUB_API_TOKEN@github.com/gatsbyjs/$NAME.git $CLONE_DIR &> /dev/null
2425
cd $CLONE_DIR
2526
find . | grep -v ".git" | grep -v "^\.*$" | xargs rm -rf # delete all files (to handle deletions in monorepo)
2627
cp -r $BASE/$folder/. .

scripts/publish-starters.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ for folder in $GLOB; do
1919
# sync to read-only clones
2020
# clone, delete files in the clone, and copy (new) files over
2121
# this handles file deletions, additions, and changes seamlessly
22-
git clone --depth 1 https://$GITHUB_API_TOKEN@github.com/gatsbyjs/$NAME.git $CLONE_DIR
22+
# note: redirect output to dev/null to avoid any possibility of leaking token
23+
git clone --depth 1 https://$GITHUB_API_TOKEN@github.com/gatsbyjs/$NAME.git $CLONE_DIR &> /dev/null
2324
cd $CLONE_DIR
2425
find . | grep -v ".git" | grep -v "^\.*$" | xargs rm -rf # delete all files (to handle deletions in monorepo)
2526
cp -r $BASE/$folder/. .

0 commit comments

Comments
 (0)