Skip to content
Permalink
Browse files

remove security whitelist for centos scanning

  • Loading branch information...
pcaskey committed Sep 23, 2019
1 parent 6c99985 commit a1c01b330ea33d2165eef16e4ec21fdca992f253
Showing with 9 additions and 36 deletions.
  1. +0 −27 tests/centos7-clair-whitelist.yaml
  2. +9 −9 tests/clairscan.sh

This file was deleted.

Oops, something went wrong.
@@ -14,13 +14,13 @@ else
echo 'using existing clair-scanner...'
fi

#ensure whitelist file (temporary)
if [ ! -s ./centos7-clair-whitelist.yaml ]; then
echo 'downloading whitelist file...'
curl -s -L -o ./centos7-clair-whitelist.yaml https://github.internet2.edu/raw/docker/shib-idp/3.4.4_20190801/tests/centos7-clair-whitelist.yaml
else
echo 'using existing whitelist file...'
fi
#if needed, ensure whitelist file
#if [ ! -s ./centos7-clair-whitelist.yaml ]; then
# echo 'downloading whitelist file...'
# curl -s -L -o ./centos7-clair-whitelist.yaml https://github.internet2.edu/raw/docker/shib-idp/3.4.4_20190801/tests/centos7-clair-whitelist.yaml
#else
# echo 'using existing whitelist file...'
#fi

#ensure DB container
echo 'ensuring a fresh clair-db container...'
@@ -54,8 +54,8 @@ echo 'sending ip addr' ${clairip} 'to clair-scan server...'

#run scan
echo 'running scan...'
./clair-scanner -w centos7-clair-whitelist.yaml --ip ${clairip} $1
#./clair-scanner --ip ${clairip} $1
#./clair-scanner -w centos7-clair-whitelist.yaml --ip ${clairip} $1
./clair-scanner --ip ${clairip} $1
retcode=$?

#eval results

0 comments on commit a1c01b3

Please sign in to comment.
You can’t perform that action at this time.