Skip to content

Commit fd4b9be

Browse files
authored
Merge pull request #121 from ConductorOne/ggreer/github-workflows
Replace grant/revoke and get-baton scripts with github actions.
2 parents 2c7c8c6 + 15a2469 commit fd4b9be

File tree

3 files changed

+7
-90
lines changed

3 files changed

+7
-90
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -88,31 +88,15 @@ jobs:
8888
run: node ./scripts/ldif.js && ls -la
8989
- name: Import ldif into openldap
9090
run: ./scripts/import.sh
91-
- name: Install baton
92-
run: ./scripts/get-baton.sh && mv baton /usr/local/bin
9391
- name: Build baton-ldap
9492
run: go build ./cmd/baton-ldap
95-
- name: Run baton-ldap
96-
run: ./baton-ldap
97-
- name: List grants
98-
run: baton grants
99-
- name: Test grant/revoking posixGroup entitlements
100-
env:
101-
BATON: baton
102-
BATON_LDAP: ./baton-ldap
103-
BATON_ENTITLEMENT: "group:cn=testgroup00000,dc=example,dc=org:member"
104-
BATON_PRINCIPAL: "cn=testuser00099@example.com,dc=example,dc=org"
105-
BATON_PRINCIPAL_TYPE: "user"
106-
run: ./scripts/grant-revoke.sh
107-
- name: Test grant/revoking groupOfUniqueNames entitlements
108-
env:
109-
BATON: baton
110-
BATON_LDAP: ./baton-ldap
111-
BATON_ENTITLEMENT: "group:cn=othertestgroup00000,dc=example,dc=org:member"
112-
BATON_PRINCIPAL: "cn=testuser00099@example.com,dc=example,dc=org"
113-
BATON_PRINCIPAL_TYPE: "user"
114-
run: ./scripts/grant-revoke.sh
115-
93+
- name: Grant/revoke
94+
uses: ConductorOne/github-workflows/actions/sync-test@v2
95+
with:
96+
connector: ./baton-ldap
97+
baton-entitlement: 'group:cn=testgroup00000,dc=example,dc=org:member'
98+
baton-principal: 'cn=testuser00099@example.com,dc=example,dc=org'
99+
baton-principal-type: user
116100
- name: Create account
117101
env:
118102
ACCOUNT_DISPLAYNAME: 'Example User'

scripts/get-baton.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

scripts/grant-revoke.sh

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)