Skip to content

Commit

Permalink
CI security
Browse files Browse the repository at this point in the history
  • Loading branch information
tahina-pro committed Apr 18, 2023
1 parent 5742135 commit 94700e7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .docker/build/build-standalone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,11 @@ rootPath=$(pwd)
export_home KRML "$rootPath"
result_file="result.txt"
out_file="log.txt"
{ { { { { { exec_build ; } 3>&1 1>&2 2>&3 ; } | sed -u 's!^![STDERR]!' ; } 3>&1 1>&2 2>&3 ; } | sed -u 's!^![STDOUT]!' ; } 2>&1 ; } | awk '{ print strftime("[%Y-%m-%d %H:%M:%S]"), $0 }' | tee $out_file
remove_credentials () {
if [[ -n "$DZOMO_GITHUB_TOKEN" ]] ; then
sed "s!$DZOMO_GITHUB_TOKEN!!g"
else
cat
fi
}
{ { { { { { exec_build ; } 3>&1 1>&2 2>&3 ; } | sed -u 's!^![STDERR]!' ; } 3>&1 1>&2 2>&3 ; } | sed -u 's!^![STDOUT]!' ; } 2>&1 ; } | awk '{ print strftime("[%Y-%m-%d %H:%M:%S]"), $0 }' | remove_credentials | tee $out_file

0 comments on commit 94700e7

Please sign in to comment.