Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: logs and cleanup #99

Merged
merged 1 commit into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion scripts/images/get-all-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ done

# retrieve all repositories and branches for dependencies
DEP_REPOS_BRANCHES=($(yq -r '.applications[] | to_json' $BUNDLE_FILE | jq -r 'select(._github_dependency_repo_name) | "\(._github_dependency_repo_name):\(._github_dependency_repo_branch)"' | sort --unique))
printf "%s\n" "${DEP_REPOS_BRANCHES[@]}"

for REPO_BRANCH in "${DEP_REPOS_BRANCHES[@]}"; do
IFS=: read -r REPO BRANCH <<< "$REPO_BRANCH"
Expand Down
1 change: 1 addition & 0 deletions scripts/images/scan-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ for IMAGE in "${IMAGE_LIST[@]}"; do
echo "$IMAGE,$BASE,$NUM_CRITICAL,$NUM_HIGH,$NUM_MEDIUM,$NUM_LOW" >> $SCAN_SUMMARY_FILE
fi
docker rmi $IMAGE
docker rm -f $(docker ps -a -q)
df . -h
done

Expand Down