Allow GitHub network access for maintenance workflows - #56978
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add github network ecosystem preset to PureLock and Dead Code Removal Agent workflows
Allow GitHub network access for maintenance workflows
Aug 29, 2026
pelikhan
marked this pull request as ready for review
August 29, 2026 22:00
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Both workflows still omit api.github.com, the primary blocked endpoint identified by the linked issue.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds GitHub network access to two maintenance workflows to reduce firewall blocks.
Changes:
- Adds the
githubnetwork preset. - Regenerates corresponding workflow lock files.
File summaries
| File | Description |
|---|---|
.github/workflows/purelock.md |
Expands network policy. |
.github/workflows/purelock.lock.yml |
Regenerates allowed domains. |
.github/workflows/dead-code-remover.md |
Expands network policy. |
.github/workflows/dead-code-remover.lock.yml |
Regenerates allowed domains. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 2
- Review effort level: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
| network: | ||
| allowed: | ||
| - defaults | ||
| - github |
| network: | ||
| allowed: | ||
| - defaults | ||
| - github |
Contributor
|
🎉 This pull request is included in a new release. Release: |
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.
PureLock and Dead Code Removal Agent generated most observed blocked firewall requests, primarily to GitHub endpoints. Their network policies omitted the
githubecosystem preset.Workflow network policy
githubalongside existingdefaults,go, andnodepresets in:purelock.mddead-code-remover.mdGenerated workflows
.lock.ymlfiles with the expanded GitHub domain allowlist.githubnetwork ecosystem preset to PureLock and Dead Code Removal Agent workflows #56944