# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 id: github-gator display_name: GitHub Gator description: Repo-scoped GitHub access for the OpenShell gator gate agent category: source_control credentials: - name: GITHUB_TOKEN description: GitHub token used by the gator gate agent env_vars: [GITHUB_TOKEN, GH_TOKEN] required: true auth_style: bearer header_name: authorization discovery: credentials: [GITHUB_TOKEN] endpoints: - host: api.github.com port: 443 protocol: rest enforcement: enforce rules: - allow: { method: GET, path: /user } - allow: method: GET path: /search/issues query: q: any: - "*repo:NVIDIA/OpenShell*" - allow: { method: GET, path: /repos/NVIDIA/OpenShell } - allow: { method: GET, path: /repos/NVIDIA/OpenShell/** } - allow: { method: POST, path: /repos/NVIDIA/OpenShell/issues/*/comments } - allow: { method: PATCH, path: /repos/NVIDIA/OpenShell/issues/comments/* } - allow: { method: POST, path: /repos/NVIDIA/OpenShell/issues/*/labels } - allow: { method: PUT, path: /repos/NVIDIA/OpenShell/issues/*/labels } - allow: { method: DELETE, path: /repos/NVIDIA/OpenShell/issues/*/labels/* } - allow: { method: PATCH, path: /repos/NVIDIA/OpenShell/issues/* } - allow: { method: POST, path: /repos/NVIDIA/OpenShell/labels } - allow: { method: PATCH, path: /repos/NVIDIA/OpenShell/labels/* } - allow: { method: POST, path: /repos/NVIDIA/OpenShell/pulls/*/comments } - allow: { method: POST, path: /repos/NVIDIA/OpenShell/pulls/*/reviews } - allow: { method: POST, path: /repos/NVIDIA/OpenShell/pulls/*/reviews/*/comments } - allow: { method: POST, path: /repos/NVIDIA/OpenShell/statuses/* } - host: api.github.com port: 443 path: /graphql protocol: graphql enforcement: enforce rules: - allow: operation_type: query - allow: operation_type: mutation operation_name: ResolveGatorReviewThread fields: [resolveReviewThread] - host: github.com port: 443 protocol: rest enforcement: enforce rules: - allow: { method: GET, path: /NVIDIA/OpenShell } - allow: { method: GET, path: /NVIDIA/OpenShell/** } - allow: { method: GET, path: /NVIDIA/OpenShell.git/** } - allow: { method: POST, path: /NVIDIA/OpenShell/**/git-upload-pack } - allow: { method: POST, path: /NVIDIA/OpenShell.git/**/git-upload-pack } - host: codeload.github.com port: 443 protocol: rest enforcement: enforce rules: - allow: { method: GET, path: /NVIDIA/OpenShell/** } - host: results-receiver.actions.githubusercontent.com port: 443 protocol: rest enforcement: enforce rules: - allow: { method: GET, path: /rest/runs/** } binaries: - /usr/bin/gh - /usr/local/bin/gh - /usr/bin/curl - /usr/local/bin/curl - /usr/bin/git - /usr/local/bin/git - /usr/bin/codex - /usr/local/bin/codex - /usr/lib/node_modules/@openai/**