WHITECOLOR
WHITECOLOR

Reputation: 26182

Travis CI: hide secrets in the output (avoid secrets leak)

Whle travis CI build I execute command like

git remote add origin https://${GH_TOKEN}/some/url
git push origin master

In the output i got:

 Fetch URL:https://<secrte-value>/some/url

As it is public repo, build output is aviable to anybody so this is a secrets leak.

How do I suppose to manage such cases in travis CI? Is there a consistent to avoid secrets leak in the output?

Upvotes: 1

Views: 625

Answers (1)

Thomas Fritsch
Thomas Fritsch

Reputation: 10147

How to manage your issue is described in Defining encrypted variables in .travis.yml

Upvotes: 1

Related Questions