Secret push protection blocks MR suggestions being applied to any file containing a secret

Problem

When someone suggests a change in an MR to a file containing a secret, secret push protection will not allow the suggestion to be applied.

Screenshot of the user's view when a suggestion is blocked when an attempt is made to apply it:

Message from secret push protection that the push is blocked

Workaround

The workaround is to check out the branch in either an IDE (e.g. the GitLab Web IDE) or at the command line, then commit and push the changes that way. This method also requires used of either the push option (-o secret_detection.skip_all) or the special commit message ([skip secret detection]).

Linked issue: Secret Push Protection Feedback (#467408 - closed)

Edited by Russell Dickenson