Created
November 20, 2019 09:43
-
-
Save antonioned/cf67624373c45190e240f130a7155650 to your computer and use it in GitHub Desktop.
Script that uses git secrets command to check fo vulnerabilities in git repos.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for r in REPO1 REPO2 REPO3 | |
do | |
cd $r | |
printf "\n\nName of repo: $r\n\n\n" >> ../repos-results.txt | |
git secrets --scan >> ../results.txt | |
printf "\n------------------------------------------------\n" >> ../repos-results.txt | |
cd ../ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment