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

Update Github Action #581

Merged
merged 2 commits into from
Nov 4, 2021
Merged

Update Github Action #581

merged 2 commits into from
Nov 4, 2021

Conversation

arothian
Copy link
Contributor

@arothian arothian commented Nov 3, 2021

  • Support writing the output to a file
  • Add a test for uploading sarif to GH code scanning

- Support writing the output to a file
- Add a test for uploading sarif to GH code scanning
@arothian arothian requested a review from a team as a code owner November 3, 2021 19:55
@@ -0,0 +1,11 @@
#!/bin/sh

echo "::debug::Using input path: ${INPUT_INPUT_PATH}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure why the term INPUT precedes all of these variable names, especially when you have something like INPUT_OUTPUT_PATH that seems to just lend to confusion. I would suggest we just remove the extra leading INPUT for all of these var names.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it's somewhat unpleasant, but GH actions prefixes all configured inputs with INPUT_ and then exposes them as ENV variables. To the end user of the action though, they would just configure input_path, which maps well to the CLI naming. I could change it to path but then it would result in that disconnect.

@arothian arothian merged commit 0de7906 into stelligent:master Nov 4, 2021
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.

2 participants