From f09b96e65ac7043746dc479b7d964df15a32c107 Mon Sep 17 00:00:00 2001 From: Hubert Deng Date: Wed, 19 Apr 2023 13:30:35 -0400 Subject: [PATCH] don't pass in error msg as arg --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 37155dc..ffc1221 100644 --- a/action.yml +++ b/action.yml @@ -70,7 +70,7 @@ runs: curl -sL https://sentry.io/get-cli/ | sh # Environment variables will automatically be sent, so we just want some minimal information error_msg=$(cat analyze_logs.txt | grep -zoP '(?<=>>> Relevant errors\n\n Error\n\n ).*?(?=\n)' || echo 'unknown error message') - sentry-cli send-event -m "FOSSA analyze error: %s" -a $error_msg -t repo:$GITHUB_REPOSITORY -e url:$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID --logfile analyze_logs.txt + sentry-cli send-event -m "FOSSA analyze error: $error_msg" -t repo:$GITHUB_REPOSITORY -e url:$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID --logfile analyze_logs.txt exit 0 fi if grep -q "The scan has revealed issues. Number of issues found:" test_logs.txt; then @@ -84,4 +84,4 @@ runs: fi curl -sL https://sentry.io/get-cli/ | sh error_msg=$(cat test_logs.txt | grep -zoP '(?<=>>> Relevant errors\n\n Error\n\n ).*?(?=\n)' || echo 'unknown error message') - sentry-cli send-event -m "FOSSA test error: %s" -a $error_msg -t repo:$GITHUB_REPOSITORY -e url:$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID --logfile test_logs.txt + sentry-cli send-event -m "FOSSA test error: $error_msg" -t repo:$GITHUB_REPOSITORY -e url:$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID --logfile test_logs.txt