Skip to content

Commit

Permalink
chore: Add snyk docker scanning feature
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesuav committed Feb 26, 2020
1 parent e8f080a commit 44b0cd5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#
set -o pipefail

source ./snyk.sh
source ./common_functions.sh

for ver in ${supported_versions}
Expand Down
1 change: 1 addition & 0 deletions build_latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ push_cmdfile=${root_dir}/push_commands.sh
target_repo="adoptopenjdk/openjdk"
version="9"

source ./snyk.sh
source ./common_functions.sh
source ./dockerfile_functions.sh

Expand Down
10 changes: 10 additions & 0 deletions snyk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

if test -f "$HOME/.nvm/nvm.sh"; then
echo "nvm found"
else
echo "No nvm on machine, snyk check will be skipped"
exit 0
fi

source "$HOME/.nvm/nvm.sh"

0 comments on commit 44b0cd5

Please sign in to comment.