Skip to main content

is_github_readonly_command

Function is_github_readonly_command 

Source
pub fn is_github_readonly_command(command: &str) -> bool
Expand description

Return true only for the networked GitHub CLI subset admitted by is_parallel_readonly_command.

Fleet uses this second predicate to apply its independent network ceiling and the configured per-host network policy. Keeping it derived from the full read-only classifier means a separator, redirect, background marker, executable flag, or unsupported gh verb can never be mislabeled merely because its first token is gh.