Skip to content

Commit

Permalink
fix: wrong exit code output
Browse files Browse the repository at this point in the history
  • Loading branch information
yeisonvargasf committed Jun 10, 2024
1 parent 045e12f commit 1d3517d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/pyupio/safety:3.0.0-615ef36
FROM ghcr.io/pyupio/safety:3.2.3-a6de00f

COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ output="${output//$'\n'/'%0A'}" # Replace newline characters with %0A
output="${output//$'\r'/'%0D'}" # Replace carriage return characters with %0D

# Output the exit code and CLI output for GitHub Actions to consume
echo "{exit-code}={$exit_code}" >> $GITHUB_OUTPUT
echo "{cli-output}={$output}" >> $GITHUB_OUTPUT
echo "exit-code=$exit_code" >> $GITHUB_OUTPUT
echo "cli-output=$output" >> $GITHUB_OUTPUT

# Exit with the same code as the Safety CLI command
exit $exit_code
4 changes: 2 additions & 2 deletions multi-ecosystem/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ output="${output//$'\n'/'%0A'}" # Replace newline characters with %0A
output="${output//$'\r'/'%0D'}" # Replace carriage return characters with %0D

# Output the exit code and CLI output for GitHub Actions to consume
echo "{exit-code}={$exit_code}" >> $GITHUB_OUTPUT
echo "{cli-output}={$output}" >> $GITHUB_OUTPUT
echo "exit-code=$exit_code" >> $GITHUB_OUTPUT
echo "cli-output=$output" >> $GITHUB_OUTPUT

# Exit with the same code as the Safety CLI command
exit $exit_code

0 comments on commit 1d3517d

Please sign in to comment.