Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
included an actual ssh key in the gitleaks dummy test file
gitleaks improved their false positive detection.

Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
  • Loading branch information
Ilyesbdlala committed Feb 21, 2025
commit afa96de2c9a98299ba3ecbf63932562367f106fa
8 changes: 7 additions & 1 deletion scanners/gitleaks/integration-tests/gitleaks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ test(
// Bash script to create a git repo with a demo file
`cd /repo && \\
git init && \\
echo '-----BEGIN PRIVATE KEY----------END PRIVATE KEY-----' > secret.pem && \\
echo '-----BEGIN OPENSSH PRIVATE KEY-----
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACBRQBYv0zGpMgMubh1XmkIZOrzi0WYXu8a1WMt3dBVJhgAAAKDyr4Ls8q+C
7AAAAAtzc2gtZWQyNTUxOQAAACBRQBYv0zGpMgMubh1XmkIZOrzi0WYXu8a1WMt3dBVJhg
AAAECvUx42+sMhjrgkMBXvanXL7LsJHj/QUX6NBSLN8hRj/FFAFi/TMakyAy5uHVeaQhk6
vOLRZhe7xrVYy3d0FUmGAAAAFnlvdXJfZW1haWxAZXhhbXBsZS5jb20BAgMEBQYH
-----END OPENSSH PRIVATE KEY-----' > secret.pem && \\
git config --global user.name test && \\
git config --global user.email user@example.com && \\
git add secret.pem && \\
Expand Down