add_mask

phalanx.github.add_mask(secret)

Mask a secret in future GitHub Actions output.

Tell GitHub Actions to hide any occurrences of the provided secret in subsequent GitHub Actions output. The primary use is to register secrets that may otherwise appear in backtraces or other output so that they’re not leaked into the GitHub Actions logs.

Parameters:

secret (str | SecretStr) – Secret to mask.

Return type:

None