Question 260
The reviewer command echoes sensitive environment variables when running shell commands. Which CI workflow choice correctly addresses the case?
Explanation
Correct Answer
CI secrets should be injected through protected variables or secret stores, and logs must redact any accidental exposure. Echoing variables or hard-coding tokens turns routine build artifacts into credential disclosure channels with broad access. By contrast, tokens and credentials must not leak into CI output. Console output is often retained and shared with people who should not possess credentials. Embedded secrets can reach source history and logs. Tokens committed in source or runner scripts can leak through history, artifacts and logs.
Incorrect Answers
Tokens and credentials must not leak into CI output. Console output is often retained and shared with people who should not possess credentials. The reviewer command echoes sensitive environment variables when running shell commands. Instead, inject secrets via secure CI facilities and redact logs.
Suppressing all logs does not solve secret handling. Disabling diagnostics does not stop secrets being passed unsafely to processes or external services. CI secrets should be injected through protected variables or secret stores, and logs must redact any accidental exposure. Instead, inject secrets via secure CI facilities and redact logs.
Embedded secrets can reach source history and logs. Tokens committed in source or runner scripts can leak through history, artifacts and logs. The reviewer command echoes sensitive environment variables when running shell commands. Instead, inject secrets via secure CI facilities and redact logs.