Skip to content

Commit afa96de

Browse files
committed
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>
1 parent f13f1fc commit afa96de

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

scanners/gitleaks/integration-tests/gitleaks.test.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ test(
3737
// Bash script to create a git repo with a demo file
3838
`cd /repo && \\
3939
git init && \\
40-
echo '-----BEGIN PRIVATE KEY----------END PRIVATE KEY-----' > secret.pem && \\
40+
echo '-----BEGIN OPENSSH PRIVATE KEY-----
41+
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
42+
QyNTUxOQAAACBRQBYv0zGpMgMubh1XmkIZOrzi0WYXu8a1WMt3dBVJhgAAAKDyr4Ls8q+C
43+
7AAAAAtzc2gtZWQyNTUxOQAAACBRQBYv0zGpMgMubh1XmkIZOrzi0WYXu8a1WMt3dBVJhg
44+
AAAECvUx42+sMhjrgkMBXvanXL7LsJHj/QUX6NBSLN8hRj/FFAFi/TMakyAy5uHVeaQhk6
45+
vOLRZhe7xrVYy3d0FUmGAAAAFnlvdXJfZW1haWxAZXhhbXBsZS5jb20BAgMEBQYH
46+
-----END OPENSSH PRIVATE KEY-----' > secret.pem && \\
4147
git config --global user.name test && \\
4248
git config --global user.email user@example.com && \\
4349
git add secret.pem && \\

0 commit comments

Comments
 (0)