Commit 9510967f authored by Russell Dickenson's avatar Russell Dickenson

Merge branch 'docs-add-sd-troubleshooting' into 'master'

Document secret detection ambiguous argument error

See merge request gitlab-org/gitlab!79959
parents a2958f88 63e67a80
......@@ -395,3 +395,12 @@ secret_detection:
variables:
GIT_DEPTH: 100
```
### `secret-detection` job fails with `ERR fatal: ambiguous argument` message
Your `secret-detection` job can fail with `ERR fatal: ambiguous argument` error if your
repository's default branch is unrelated to the branch the job was triggered for.
See issue [!352014](https://gitlab.com/gitlab-org/gitlab/-/issues/352014) for more details.
To resolve the issue, make sure to correctly [set your default branch](../../project/repository/branches/default.md#change-the-default-branch-name-for-a-project) on your repository. You should set it to a branch
that has related history with the branch you run the `secret-detection` job on.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment