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:
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)
Edited by Russell Dickenson