From 2f650e085b8cff52793d57850bdc94710e5b17fc Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 5 May 2021 18:56:58 +0200 Subject: [PATCH] github: Don't fail LGTM test with an error if variables are missing That's because forks are currently not allowed to be analyzed by LGTM (unlike with SonarCloud) so this check can't actually be successful for forks even if variables are defined. References strongswan/strongswan#328. --- scripts/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test.sh b/scripts/test.sh index 536f09464..2028db33d 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -325,7 +325,7 @@ lgtm) if [ -z "$LGTM_PROJECT" -o -z "$LGTM_TOKEN" ]; then echo "The LGTM_PROJECT and LGTM_TOKEN environment variables" \ "are required to run this test" - exit 1 + exit 0 fi DEPS="jq" if test -z "$1"; then