Skip to content

Commit

Permalink
Remove git-root usage
Browse files Browse the repository at this point in the history
git root doesn't exist in the GitHub CI.

Signed-off-by: Luiz Carvalho <[email protected]>
  • Loading branch information
lcarva committed Sep 6, 2024
1 parent 0c7742d commit 5b9ff34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hack/update-repository-to-cpe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion hack/verify-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b9ff34

Please sign in to comment.