Skip to content

Instantly share code, notes, and snippets.

@antonioned
Created November 20, 2019 09:43
Show Gist options
  • Save antonioned/cf67624373c45190e240f130a7155650 to your computer and use it in GitHub Desktop.
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.
#!/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