Cypress · Junior · Question 50 of 75
Why should secrets not be committed in cypress.env.json?
- 1Cypress refuses to load files that contain secrets
- 2Anyone with repo access could read and misuse them
- 3The file makes the test run much slower
Show the answer
Correct answer: Anyone with repo access could read and misuse them
Explanation
Inject secrets in CI as CYPRESS_* variables or from a secret store.