GitHub Copilot handles this as a draft: GitHub's 16 Oct 2026 changelog says a new API lets coding agents check whether packages comply with an enterprise license policy, so they can avoid recommending or adding a package that violates it. You still add the dependency.
GitHub Copilot · Unverified · github.blog · 18 Oct 2026