Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

Commit

Permalink
Update pull-request-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebearden authored Sep 28, 2022
1 parent f45be73 commit b44d4cc
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/pull-request-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: Pull Request Workflow

on:
Expand All @@ -12,21 +13,10 @@ jobs:
- name: Viperlight
run: |
wget -q https://viperlight-scanner.s3.amazonaws.com/latest/.viperlightrc
wget -q https://viperlight-scanner.s3.amazonaws.com/latest/codescan-funcs.sh
wget -q https://viperlight-scanner.s3.amazonaws.com/latest/codescan-postbuild-default.sh
wget -q https://viperlight-scanner.s3.amazonaws.com/latest/viperlight.zip
unzip -q viperlight.zip -d ../viperlight
rm -r ./viperlight.zip
default_scan="./codescan-postbuild-default.sh"
if [ -f "$default_scan" ]; then
chmod +x $default_scan
else
default_scan = "viperlight scan"
fi
custom_scancmd=./codescan-postbuild-custom.sh
if [ -f "$custom_scancmd" ]; then
chmod +x $custom_scancmd
$custom_scancmd
else
$default_scan
fi
echo "Content scanning utility installation complete `date`"
echo "Starting content scanning `date` in `pwd`"
../viperlight/bin/viperlight scan -m files-contents -m files-aws -m files-binary -m files-entropy -m files-secrets
echo "Completed content scanning `date`"

0 comments on commit b44d4cc

Please sign in to comment.