Skip to content

Commit

Permalink
fix(github): fix GITHUB_OUTPUT and GITHUB_ENV issues of checkov-action (
Browse files Browse the repository at this point in the history
#3726)

fix GITHUB_OUTPUT and GITHUB_ENV issues
  • Loading branch information
gruebel authored Oct 24, 2022
1 parent 2bf6097 commit f965b20
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions github_action_resources/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,8 @@ CHECKOV_EXIT_CODE=$?

CHECKOV_RESULTS="${CHECKOV_RESULTS//$'\\n'/''}"

{ echo "CHECKOV_RESULTS<<EOF"; echo "$CHECKOV_RESULTS"; echo "EOF"; } >> $GITHUB_ENV

echo "results=${CHECKOV_RESULTS}" >> $GITHUB_OUTPUT
{ echo "CHECKOV_RESULTS<<EOF"; echo "${CHECKOV_RESULTS:0:65536}"; echo "EOF"; } >> $GITHUB_ENV
{ echo "results<<EOF"; echo "$CHECKOV_RESULTS"; echo "EOF"; } >> $GITHUB_OUTPUT

if [ -n "$INPUT_DOWNLOAD_EXTERNAL_MODULES" ] && [ "$INPUT_DOWNLOAD_EXTERNAL_MODULES" = "true" ]; then
echo "Cleaning up $INPUT_DIRECTORY/.external_modules directory"
Expand Down

0 comments on commit f965b20

Please sign in to comment.