-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move percy keys from encrypted .travis.yml entries to travis config #9314
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,9 @@ function extractPercyKeys() { | |
'Error: PERCY_TOKEN doesn\'t look like a valid Percy API key')); | ||
process.exit(1); | ||
} | ||
util.log('Percy token: ', util.colors.magenta('<redacted>')); | ||
// Note: The secret percy token only gets printed during local use. Travis | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Who will be able to see the token? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only engineers who want to do a local visual diff run, who already have access to the tokens. Those who access the public travis logs will not see the token in the logs. |
||
// will hide it in publicly accessible logs. | ||
util.log('Percy token: ', util.colors.magenta(percyToken)); | ||
return { | ||
percyProject: percyProject, | ||
percyToken: percyToken, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These were moved elsewhere right? Is it okay that these were publicly visible on github?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. This is travis' mechanism to safely do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are now part of the travis config, and are in a mode where they are not printed within logs. This is exactly how we store our sauce tokens.