What it flags
Ash, bat, powershell or pwsh step inside withCredentials whose double-quoted script interpolates a secret variable that the binding declares: variable of string and usernameColonPassword, passwordVariable, passphraseVariable and secretKeyVariable. Credentials bound in a declarative environment block (TOKEN = credentials('id'), which also defines TOKEN_PSW) count within the enclosing stage or pipeline. Groovy substitutes the secret into the command string, so it appears in the process list on the agent, can be read by other processes, and reaches the step’s arguments; a secret that contains shell characters also changes the command. Jenkins reports the same pattern as insecure interpolation of sensitive variables. Jenkins docs
Not flagged: single-quoted scripts, where the shell reads the secret from the environment; usernames, key file paths and file or zip binding variables, which hold a path rather than the secret; the condition of a ternary, while each of its results is checked; and uses outside the withCredentials block or stage that binds the name.
Configuration
Set the rule to"off" in loadwise.config.json to drop its findings: