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

fix: change debug to argument instead of variable #20

Merged
merged 1 commit into from
Aug 12, 2022

Conversation

andrewelizondo
Copy link
Contributor

Summary

Fixes my last PR that instead sets the debug argument as the env variable is currently not working

@@ -21,6 +20,9 @@ fi
if [ ! -z "${INPUT_BUILD_REPORT_FILE_NAME}" ]; then
export SCANNER_PARAMETERS="${SCANNER_PARAMETERS} --html-file ${INPUT_BUILD_REPORT_FILE_NAME}"
fi
if [ ${INPUT_LW_SCANNER_ENABLE_DEBUGGING} = "true" ]; then
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we expecting ${INPUT_LW_SCANNER_ENABLE_DEBUGGING} to contain true as a string?
If not, could this statement just be the following?

if ${INPUT_LW_SCANNER_ENABLE_DEBUGGING}; then

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bash doesn't support booleans, so this is the right approach.

@afiune afiune merged commit 3393a74 into lacework:main Aug 12, 2022
@lacework-releng lacework-releng mentioned this pull request Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants