-
Notifications
You must be signed in to change notification settings - Fork 7
feat: add pr_comment_enabled and pr_comment_collapse_all PR comment controls #97
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,6 +90,12 @@ notifiers: | |
| option: --github-api-url | ||
| env_variable: GITHUB_API_URL | ||
| type: str | ||
| - name: pr_comment_enabled | ||
| option: --pr-comment | ||
| env_variable: INPUT_PR_COMMENT_ENABLED | ||
| type: bool | ||
| default: true | ||
| description: "Post/update the findings comment on the PR (scanning and dashboard upload are unaffected)" | ||
| - name: pr_comment_links_enabled | ||
| option: --pr-comment-links | ||
| env_variable: INPUT_PR_COMMENT_LINKS_ENABLED | ||
|
|
@@ -108,6 +114,12 @@ notifiers: | |
| type: bool | ||
| default: true | ||
| description: "Auto-collapse non-critical findings (critical stays expanded)" | ||
| - name: pr_comment_collapse_all | ||
| option: --pr-comment-collapse-all | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we wire notification options through |
||
| env_variable: INPUT_PR_COMMENT_COLLAPSE_ALL | ||
| type: bool | ||
| default: false | ||
| description: "Collapse every findings section, including critical ones" | ||
| - name: pr_comment_code_fencing_enabled | ||
| option: --pr-comment-code-fencing | ||
| env_variable: INPUT_PR_COMMENT_CODE_FENCING_ENABLED | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we either implement this behavior for the flat-table formatters or narrow the contract? Only OpenGrep and Tier 1 consume
pr_comment_collapse_all. TruffleHog and Trivy Dockerfile findings remain expanded tables, and even SAST leaves one visible collapsed row per file, so the guide's claim that the comment becomes one line is not accurate. Please add formatter coverage for the remaining outputs, or describe this specifically as collapsing the currently collapsible SAST/Tier 1 sections and adjust the one-line wording.