diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 77fa289a..933ecdd6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -5,9 +5,8 @@ jobs: runs-on: ubuntu-latest env: BATON_TOKEN: ${{ secrets.BATON_TOKEN }} - BATON_ENTERPRISES: mevans-test - BATON_ORGS: mevans-test-org1 - BATON_INSTANCE_URL: https://github.com + BATON_ORGS: ${{ vars.BATON_ORGS }} + BATON_INSTANCE_URL: ${{ vars.BATON_INSTANCE_URL }} steps: - name: Checkout code uses: actions/checkout@v4 @@ -21,6 +20,6 @@ jobs: uses: ConductorOne/github-workflows/actions/sync-test@v2 with: connector: ./baton-github-enterprise - baton-entitlement: 'org_role:8132:assigned' - baton-principal: '268751836' - baton-principal-type: 'user' + baton-entitlement: ${{ vars.ENTITLEMENT_ID }} + baton-principal: ${{ vars.PRINCIPAL_ID }} + baton-principal-type: ${{ vars.PRINCIPAL_TYPE }} diff --git a/docs/connector.mdx b/docs/connector.mdx index f66906d2..afc4bb9f 100644 --- a/docs/connector.mdx +++ b/docs/connector.mdx @@ -313,6 +313,7 @@ baton-github-enterprise | `BATON_ORGS` | Comma-separated list of organizations to sync. If not set, all organizations are synced. | | `BATON_ENTERPRISES` | Comma-separated list of enterprises to sync enterprise roles for. | | `BATON_OMIT_ARCHIVED_REPOSITORIES` | Set to `true` to exclude archived repositories from syncs. | +| `BATON_DIRECT_COLLABORATORS_ONLY` | Set to `true` to optimize sync for large organizations by reducing API calls (uses grant expansion for team-based repo access and skips per-team detail fetches). | | `BATON_PROVISIONING` | Set to `true` to enable provisioning and deprovisioning. | | `BATON_SYNC_SECRETS` | Set to `true` to sync secrets (API keys). | @@ -385,4 +386,4 @@ If you see this error during sync, it most commonly means the GitHub App is miss This permission is required because the connector queries GitHub's GraphQL API to check whether your organization has SAML/SSO configured. GitHub restricts this data to apps with organization admin read access. Without it, the sync will fail. -**To fix:** Go to your GitHub App settings, then navigate to **Permissions** > **Organization permissions** > **Administration** and set it to **Read-only**. \ No newline at end of file +**To fix:** Go to your GitHub App settings, then navigate to **Permissions** > **Organization permissions** > **Administration** and set it to **Read-only**.