Ci build log show environment variables values

the log show the github access token. how to hide it ?

Assuming the git push command is in your config.yml, you could just do git push ... > /dev/null, although that would remove all output rather than just the token line.

You could also try git push ... | grep -v "To https://" to remove that line on its own.

Unfortunately git push does not seem to have any quiet flags.

thanks !

i find that add -q flag can hide the messages. just git push ... -q

1 Like