Last active
January 12, 2023 08:26
-
-
Save tyage/ccfab4afb68e3275bb1ac830973d4143 to your computer and use it in GitHub Desktop.
Automatically analyze generated codeql db
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
REPO=$1 | |
REPO_DIR=repos/$REPO/ | |
rm -rf $REPO_DIR | |
mkdir -p $REPO_DIR | |
cd $REPO_DIR | |
git clone --depth 1 "https://github.com/$REPO" | |
curl "https://api.github.com/repos/$REPO/code-scanning/codeql/databases/javascript" -H "accept: application/zip" -L -o codeqldb.zip | |
unzip -q codeqldb.zip | |
codeql database analyze ./javascript codeql/javascript-queries --format=sarif-latest --output=codeql.sarif --download |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment