Skip to main content
When scanning with Semgrep, you may run into the following error:
This error indicates that there is a problem in the pasted SEMGREP_APP_TOKEN value, most often an extra newline (\n).

Fix a secret on GitHub

To fix on GitHub:
1
At either the organization or repository level, go to Settings > Secrets and variables
Secrets and variables section in Settings
2
Update the value of the SEMGREP_APP_TOKEN to ensure it does not have an extraneous newline (\n) and is not malformed
Updating GitHub Secret

Fix a secret on GitLab

To fix on GitLab:
1
Go to your repository’s CI/CD settings
2
Update the SEMGREP_APP_TOKEN value to ensure it does not have an extraneous newline (\n) and is not malformed
Updating GitLab Variable