debug logging

Setting CI_DEBUG_TRACE to true, which makes a job log every shell command and every variable it can see.

The log shows every variable, so a debug log can leak secrets.

In more detail

It helps find out why a script behaves differently in the pipeline. The log then contains the values of all variables, so it can expose secrets, and GitLab restricts who can read such a log. Turn it on for one job, briefly, and off again.

Related terms

Taught in

References

Certification courses