Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to trigger the Show Info flag #44

Merged
merged 1 commit into from
Feb 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,23 @@ name: 'Psalm – Static Analysis for PHP'
inputs:
security_analysis:
required: false
default: false
default: 'false'
description: 'Whether or not to use Psalm’s security analysis'
show_info:
required: false
default: 'false'
description: 'Whether or not to show non-exception parser findings'
report_file:
required: false
default: ''
description: 'File for Psalm’s output'
composer_require_dev:
required: false
default: false
default: 'false'
description: 'Whether or not Composer installs dev packages'
composer_ignore_platform_reqs:
required: false
default: false
default: 'false'
description: 'Whether or not the --ignore-platform-reqs flag is passed to Composer'
ssh_key:
description: The private key contents to use for private repositories
Expand Down
7 changes: 6 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ if [ ! -z "$INPUT_REPORT_FILE" ]; then
REPORT="--report=$INPUT_REPORT_FILE"
fi

SHOW_INFO=""
if [ "$INPUT_SHOW_INFO" = "true"]; then
SHOW_INFO="--show-info=true"
fi

if [ -n "$INPUT_SSH_KEY" ]
then
echo "::group::Keys setup for private repositories"
Expand Down Expand Up @@ -76,4 +81,4 @@ else
fi

/composer/vendor/bin/psalm --version
/composer/vendor/bin/psalm --output-format=github $TAINT_ANALYSIS $REPORT $*
/composer/vendor/bin/psalm --output-format=github $TAINT_ANALYSIS $REPORT $SHOW_INFO $*