Set default max to 1 for safe outputs that were originally 1#19620
Closed
Set default max to 1 for safe outputs that were originally 1#19620
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
pelikhan
reviewed
Mar 4, 2026
| autofixCodeScanningAlertLog.Print("Parsing autofix-code-scanning-alert configuration") | ||
| addCodeScanningAutofixConfig := &AutofixCodeScanningAlertConfig{} | ||
| addCodeScanningAutofixConfig.Max = defaultIntStr(10) // Default max is 10 | ||
| addCodeScanningAutofixConfig.Max = defaultIntStr(1) // Default max is 1 |
| prReviewCommentsConfig.TargetRepoSlug = targetRepoSlug | ||
|
|
||
| // Parse common base fields with default max of 10 | ||
| c.parseBaseSafeOutputConfig(configMap, &prReviewCommentsConfig.BaseSafeOutputConfig, 10) |
| createProjectStatusUpdateLog.Print("Parsing create-project-status-update configuration") | ||
| config := &CreateProjectStatusUpdateConfig{} | ||
| config.Max = defaultIntStr(10) // Default max is 10 | ||
| config.Max = defaultIntStr(1) // Default max is 1 |
| } | ||
|
|
||
| // Parse common base fields with default max of 5 | ||
| c.parseBaseSafeOutputConfig(configMap, &hideCommentConfig.BaseSafeOutputConfig, 5) |
| linkSubIssueConfig.SafeOutputTargetConfig = targetConfig | ||
|
|
||
| // Parse common base fields with default max of 5 | ||
| c.parseBaseSafeOutputConfig(configMap, &linkSubIssueConfig.BaseSafeOutputConfig, 5) |
|
|
||
| // Parse common base fields with default max of 10 | ||
| c.parseBaseSafeOutputConfig(configMap, &config.BaseSafeOutputConfig, 10) | ||
| c.parseBaseSafeOutputConfig(configMap, &config.BaseSafeOutputConfig, 1) |
| // Parse common base fields with default max of 10 | ||
| c.parseBaseSafeOutputConfig(configMap, &config.BaseSafeOutputConfig, 10) | ||
| // Parse common base fields with default max of 1 | ||
| c.parseBaseSafeOutputConfig(configMap, &config.BaseSafeOutputConfig, 1) |
Copilot
AI
changed the title
[WIP] Update default max value for safe outputs to 1
Set default max to 1 for all safe outputs
Mar 4, 2026
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Reverted in 8462b21 — all safe output defaults that were not originally 1 have been restored to their original values. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Copilot
AI
changed the title
Set default max to 1 for all safe outputs
Set default max to 1 for safe outputs that were originally 1
Mar 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Safe output types that did not have an explicitly chosen default are set to
max: 1. Types with intentionally higher defaults retain their original values.Changes
safe_output_validation_config.go— SetDefaultMax: 1for types that did not have a previously assigned default (e.g.create_issue,create_agent_session,add_comment,create_pull_request,assign_milestone,assign_to_agent,assign_to_user,update_issue,update_pull_request,submit_pull_request_review,create_discussion,close_discussion,close_issue,close_pull_request,update_release,noop,create_project)Types with intentionally higher defaults are unchanged —
add_labels(5/3),add_reviewer(3),remove_labels(5/3),set_issue_type(5),hide_comment(5),link_sub_issue(5),update_project(10),create_project_status_update(10),autofix_code_scanning_alert(10),create_code_scanning_alert(40),upload_asset(0/unlimited),push_to_pull_request_branch(0/unlimited),mark_pull_request_as_ready_for_review(10),reply_to_pull_request_review_comment(10),resolve_pull_request_review_thread(10),missing_tool(20),missing_data(20)Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.