Skill 4.2.4

Design pipelines to prevent leakage of sensitive information

Key Concepts

Platforms mask registered secrets in logs, but masking does not catch every transformed value. Secrets should not be passed on command lines, and verbose logging should be off in production runs.

Pull request workflows from forks should not receive secrets. In GitHub, pull_request_target runs with secrets, so it must not check out untrusted code. Third-party actions should be pinned to a full commit SHA.