tests: update scripts for static checks migration

Updates to scripts for static-checks.sh functionality, including common
functions location, the move of several common functions to the existing
common.bash, adding hadolint and xurls to the versions file, and changes
to static checks for running in the main kata containers repo.

The changes to the vendor check include searching for existing go.mod
files but no other changes to expand the test.

Fixes #8187

Signed-off-by: Chelsea Mafrica <chelsea.e.mafrica@intel.com>
This commit is contained in:
Chelsea Mafrica
2023-11-21 17:43:04 -08:00
parent 66f3944b52
commit 6d9cb9325d
5 changed files with 171 additions and 35 deletions

View File

@@ -15,8 +15,8 @@ script_name=${0##*/}
source "/etc/os-release" || "source /usr/lib/os-release"
self_dir=$(dirname "$(readlink -f "$0")")
cidir="${self_dir}/../../.ci"
source "${cidir}/lib.sh"
cidir="${self_dir}/../.."
source "${cidir}/common.bash"
typeset -r labels_file="labels.yaml"
typeset -r labels_template="${labels_file}.in"