Skip to contents

Adds the given hostnames to the Copilot coding agent firewall allowlist for the current repository. If the GitHub token lacks the required permissions, the user is informed of the settings URL and the list of hostnames so they can add them manually. For details, see the Copilot firewall documentation.

Usage

use_github_copilot_whitelist(
  allowlist = default_allowlist(),
  gh_token = gh::gh_token()
)

Arguments

allowlist

(character) Hostnames to add to the GitHub Copilot coding agent firewall allowlist. Defaults to default_allowlist(), a curated set of R and GitHub domains.

gh_token

(character(1)) A GitHub personal access token. Defaults to gh::gh_token().

Value

NULL, invisibly.

Examples

if (FALSE) { # interactive()

  use_github_copilot_whitelist()
}