Secrets
How to securely store and use username, password, and other secrets within TestDriver
Last updated
Was this helpful?
How to securely store and use username, password, and other secrets within TestDriver
Last updated
Was this helpful?
You'll likely want TestDriver to log in to your app as a test user, but you wouldn't want to expose that password to the world.
Thankfully TestDriver provides a way to securely use secrets. Secrets will be masked from all test output, including Dashcam Debugger logs.
Open your test file (.yml
) in a code editor and replace your secrets with ${TD_YOUR_SECRET}
.
TestDriver will only parse and mask secrets that begin with TD_
.
Here is an example of Test Stepswith the secret syntax.
First, configure the secrets within your GitHub repository.
Follow the guide here for detailed instructions on how to add a secrete to your GitHub repo or organization.
When using the Test Runners to spawn tests, supply your TD_SECRET
within the env:
value provided to the GitHub action.