From 5b9ff3464f5b7d29c2581731295ac7eb9e1e0170 Mon Sep 17 00:00:00 2001 From: Luiz Carvalho Date: Fri, 6 Sep 2024 13:07:41 -0400 Subject: [PATCH] Remove git-root usage git root doesn't exist in the GitHub CI. Signed-off-by: Luiz Carvalho --- hack/update-repository-to-cpe.sh | 2 +- hack/verify-data.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/update-repository-to-cpe.sh b/hack/update-repository-to-cpe.sh index 3b7ac13..4f18c88 100755 --- a/hack/update-repository-to-cpe.sh +++ b/hack/update-repository-to-cpe.sh @@ -4,7 +4,7 @@ set -o errexit set -o pipefail set -o nounset -cd "$(git root)" +cd "$(git rev-parse --show-toplevel)" BASE_URL='https://access.redhat.com/security/data/meta/v1/repository-to-cpe.json' diff --git a/hack/verify-data.sh b/hack/verify-data.sh index 7e800e6..2f2b4e1 100755 --- a/hack/verify-data.sh +++ b/hack/verify-data.sh @@ -4,7 +4,7 @@ set -o errexit set -o pipefail set -o nounset -cd "$(git root)" +cd "$(git rev-parse --show-toplevel)" # The EC policy does not allow for relative paths. For this reason, we use envsubst to replace # occurrences of $PWD with the actual working directory. The result is a temporary policy file