Skip to content

[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
mainfrom
copilot/fix-cli-proxy-default-policy-review-1783915684312
Closed

[review] Fix CLI proxy default policy to respect repo visibility (block private repos in public repos)#45169
github-actions[bot] wants to merge 6 commits into
mainfrom
copilot/fix-cli-proxy-default-policy-review-1783915684312

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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.

Copilot AI and others added 6 commits July 13, 2026 02:57
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants