From a15afff0ec8c8aaebf2cc0c9de535d93daea44d4 Mon Sep 17 00:00:00 2001 From: dhurley Date: Fri, 17 Feb 2023 15:30:55 +0000 Subject: [PATCH 1/2] Add temporary fix for detected dubious ownership git issue when building freebsd packages. --- scripts/packages/packager/signed-entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/packages/packager/signed-entrypoint.sh b/scripts/packages/packager/signed-entrypoint.sh index 415c64843..cfd90d56b 100644 --- a/scripts/packages/packager/signed-entrypoint.sh +++ b/scripts/packages/packager/signed-entrypoint.sh @@ -25,6 +25,8 @@ cp build/nginx-agent staging/usr/local/bin chmod +x staging/usr/local/etc/rc.d/nginx-agent +# Temporary fix until the follow issue is resolved https://github.com/actions/checkout/issues/1169 +git config --global --add safe.directory /nginx-agent VERSION="$(git describe --match 'v[0-9]*' --abbrev=0 | tr -d 'v')" envsubst < scripts/packages/manifest > staging/+MANIFEST for freebsd_abi in $FREEBSD_DISTROS; do \ From 5ecbb90730acbd53059e90c18396c8a4284126c7 Mon Sep 17 00:00:00 2001 From: dhurley Date: Fri, 17 Feb 2023 15:38:30 +0000 Subject: [PATCH 2/2] Add temporary fix for detected dubious ownership git issue when building freebsd packages. --- scripts/packages/packager/local-entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/packages/packager/local-entrypoint.sh b/scripts/packages/packager/local-entrypoint.sh index af354e291..1a764afab 100644 --- a/scripts/packages/packager/local-entrypoint.sh +++ b/scripts/packages/packager/local-entrypoint.sh @@ -20,6 +20,8 @@ cp build/nginx-agent /staging/usr/local/bin chmod +x /staging/usr/local/etc/rc.d/nginx-agent +# Temporary fix until the follow issue is resolved https://github.com/actions/checkout/issues/1169 +git config --global --add safe.directory /nginx-agent VERSION="$(git describe --match 'v[0-9]*' --abbrev=0 | tr -d 'v')-SNAPSHOT-$(git rev-parse --short HEAD)" envsubst < scripts/packages/manifest > /staging/+MANIFEST pkg -o ABI="FreeBSD:13:amd64" create --format txz \