From de0465a9e464f6d414fa2bc1db73ba2785ae0267 Mon Sep 17 00:00:00 2001 From: Geoff Greer Date: Tue, 9 Jul 2024 11:16:01 -0700 Subject: [PATCH] Fix error generating capabilities. Commit initial baton capabilities. --- .github/workflows/capabilities.yaml | 3 ++ baton_capabilities.json | 79 +++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 baton_capabilities.json diff --git a/.github/workflows/capabilities.yaml b/.github/workflows/capabilities.yaml index ba1ba4f..d22641b 100644 --- a/.github/workflows/capabilities.yaml +++ b/.github/workflows/capabilities.yaml @@ -24,6 +24,9 @@ jobs: run: go build -o connector ./cmd/baton-slack - name: Run and save output + env: + BATON_ENTERPRISE_TOKEN: ${{ secrets.BATON_ENTERPRISE_TOKEN }} + BATON_TOKEN: ${{ secrets.BATON_TOKEN }} run: ./connector capabilities > baton_capabilities.json - name: Commit changes diff --git a/baton_capabilities.json b/baton_capabilities.json new file mode 100644 index 0000000..641e4a8 --- /dev/null +++ b/baton_capabilities.json @@ -0,0 +1,79 @@ +{ + "@type": "type.googleapis.com/c1.connector.v2.ConnectorCapabilities", + "resourceTypeCapabilities": [ + { + "resourceType": { + "id": "enterpriseRole", + "displayName": "Enterprise Role", + "traits": [ + "TRAIT_ROLE" + ] + }, + "capabilities": [ + "CAPABILITY_SYNC" + ] + }, + { + "resourceType": { + "id": "group", + "displayName": "IDP Group", + "traits": [ + "TRAIT_GROUP" + ] + }, + "capabilities": [ + "CAPABILITY_SYNC", + "CAPABILITY_PROVISION" + ] + }, + { + "resourceType": { + "id": "user", + "displayName": "User", + "traits": [ + "TRAIT_USER" + ] + }, + "capabilities": [ + "CAPABILITY_SYNC" + ] + }, + { + "resourceType": { + "id": "userGroup", + "displayName": "User Group", + "traits": [ + "TRAIT_GROUP" + ] + }, + "capabilities": [ + "CAPABILITY_SYNC" + ] + }, + { + "resourceType": { + "id": "workspace", + "displayName": "Workspace", + "traits": [ + "TRAIT_GROUP" + ] + }, + "capabilities": [ + "CAPABILITY_SYNC" + ] + }, + { + "resourceType": { + "id": "workspaceRole", + "displayName": "Workspace Role", + "traits": [ + "TRAIT_ROLE" + ] + }, + "capabilities": [ + "CAPABILITY_SYNC", + "CAPABILITY_PROVISION" + ] + } + ] +} \ No newline at end of file