Skip to content

Add api.github.com network domain to gh.md shared workflow#5903

Closed
Copilot wants to merge 4 commits intomainfrom
copilot/update-gh-md-workflow-domain
Closed

Add api.github.com network domain to gh.md shared workflow#5903
Copilot wants to merge 4 commits intomainfrom
copilot/update-gh-md-workflow-domain

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 8, 2025

The gh.md shared workflow provides the safeinputs-gh tool for executing GitHub CLI commands with proper authentication. However, it lacked explicit network permission for api.github.com, which the gh CLI requires to access GitHub's API.

Changes

  • Added network.allowed: [api.github.com] to .github/workflows/shared/gh.md frontmatter
  • Recompiled all workflows importing gh.md to propagate the network configuration to their lock files

Impact

Workflows using safeinputs-gh now have explicit firewall allowlist entries for api.github.com:

allowed_domains: ["api.github.com","defaults","github","node"]

The domain appears in both the workflow metadata and the awf --allow-domains command line flag in compiled lock files.

Original prompt

Update the gh.md agentic workflow to allow network domain "api.gitbub.com"


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits December 8, 2025 20:45
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update gh.md agentic workflow for api.github.com domain Add api.github.com network domain to gh.md shared workflow Dec 8, 2025
Copilot AI requested a review from pelikhan December 8, 2025 20:56
@pelikhan pelikhan closed this Dec 8, 2025
@pelikhan pelikhan deleted the copilot/update-gh-md-workflow-domain branch December 8, 2025 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants