Skip to content

feat(agents): allow gator to reach GHSA private forks - #4893

Merged
purp merged 1 commit into
NVIDIA:mainfrom
purp:feat/gator-ghsa-fork-access/purp
Oct 26, 2026
Merged

purp merged 1 commit into
NVIDIA:mainfrom
purp:feat/gator-ghsa-fork-access/purp

Conversation

@purp

@purp purp commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

Let gator reach GitHub security advisory private forks (OpenShell-ghsa-*) so it can review pull requests opened there. The github-gator provider's repo-scoped rules allowed only NVIDIA/OpenShell, so the sandbox denied every request to a fork.

Related Issue

No issue. This is a small agent-tooling change by a maintainer. Without it, gator can't reach advisory fork PRs at all.

Changes

  • scripts/agents/gator/providers/github-gator.yaml: the repo-scoped rules for api.github.com, github.com (including the git smart-HTTP paths), and codeload.github.com now match {NVIDIA,ai-openshell}/{OpenShell,OpenShell-ghsa-*} instead of NVIDIA/OpenShell. The ai-openshell org is included now so the rules don't need another change when work moves there.
  • The paths are quoted because YAML flow mappings can't hold unquoted braces or commas.
  • No other repos are added. OpenShell-Community, OpenShell-Windows, and OpenShell-Research still don't match.
  • The search/issues rule is unchanged. *repo:NVIDIA/OpenShell* already matches the forks.

Testing

  • openshell profile lint --file scripts/agents/gator/providers/github-gator.yaml passes
  • Checked the new patterns with glob.match(pattern, ["/"], path) on regorus 0.9.1, the engine the sandbox policy uses. All 21 cases passed: the forks and NVIDIA/OpenShell match, while OpenShell-Community, -Windows, -Research, other orgs, lowercase nvidia, and nested repo names don't.
  • Pre-commit hooks pass
  • Not yet run end to end against a fork PR

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)

Widen the github-gator provider's repo-scoped rules from NVIDIA/OpenShell
to {NVIDIA,ai-openshell}/{OpenShell,OpenShell-ghsa-*} so gator can read and
review pull requests in GitHub security advisory private forks. The search
rule already matches the forks and is unchanged.

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
@purp
purp added this pull request to the merge queue Oct 26, 2026
Merged via the queue into NVIDIA:main with commit 2ff59bf Oct 26, 2026
81 checks passed
@purp
purp deleted the feat/gator-ghsa-fork-access/purp branch October 26, 2026 17:22
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