[review] Fix CLI proxy default policy to respect repo visibility (block private repos in public repos)#45169
Closed
github-actions[bot] wants to merge 6 commits into
Closed
Conversation
When no explicit repos/min-integrity is configured in the workflow frontmatter, the CLI proxy previously fell back to a hardcoded default that allowed all repos (including private repos), even when the workflow runs in a public repository. Changes: - determine_automatic_lockdown.cjs: set repos="public" (not "all") for public repos when no repos is explicitly configured. Also handle GH_AW_PRIVATE_TO_PUBLIC_FLOWS=allow to override back to "all" when user opts in. - compiler_github_mcp_steps.go: emit GH_AW_PRIVATE_TO_PUBLIC_FLOWS: allow env var when private-to-public-flows: allow is configured - compiler_difc_proxy.go: reference steps.determine-automatic-lockdown.outputs.repos and .min_integrity in the default CLI proxy policy template instead of hardcoded values - Update all workflow lock files via make recompile - Update tests for all changes Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Lock files will be recompiled separately after the source changes are merged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Lock files will be recompiled separately after the source changes are merged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This was referenced Jul 13, 2026
Fix CLI proxy default policy to respect repo visibility (block private repos in public repos)
#45158
Merged
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.
Caution
agentic threat detected
Threat detection flagged this output in warn mode. Manual review is REQUIRED before any follow-up automation.
Reason: agent_failure
Review the workflow run logs for details.
This PR contains changes that were originally intended for PR #45158 (
copilot/fix-cli-proxy-default-policy).Please review the changes carefully before merging.