Skip to content

Commit e0d4ba8

Browse files
fix ci
1 parent def1768 commit e0d4ba8

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/capabilities_and_config.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,17 @@ jobs:
2727
- name: Run and save config output
2828
run: ./connector config > config_schema.json
2929

30+
- name: Setup private key
31+
run: |
32+
echo "${{ secrets.BATON_PRIVATE_KEY }}" | base64 -d > /tmp/snowflake_key.p8
33+
chmod 600 /tmp/snowflake_key.p8
34+
3035
- name: Run and save capabilities output
3136
env:
3237
BATON_ACCOUNT_IDENTIFIER: example
3338
BATON_USER_IDENTIFIER: example
3439
BATON_ACCOUNT_URL: https://example.snowflakecomputing.com
35-
BATON_PRIVATE_KEY: ${{ secrets.BATON_PRIVATE_KEY }}
40+
BATON_PRIVATE_KEY_PATH: /tmp/snowflake_key.p8
3641
run: ./connector --sync-secrets capabilities > baton_capabilities.json
3742

3843
- name: Commit changes

.github/workflows/ci.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ jobs:
5050
BATON_ACCOUNT_IDENTIFIER: ${{ secrets.BATON_ACCOUNT_IDENTIFIER }}
5151
BATON_USER_IDENTIFIER: ${{ secrets.BATON_USER_IDENTIFIER }}
5252
BATON_ACCOUNT_URL: ${{ secrets.BATON_ACCOUNT_URL }}
53-
BATON_PRIVATE_KEY: ${{ secrets.BATON_PRIVATE_KEY }}
5453
# The following parameters are passed to grant/revoke commands
5554
# Change these to the correct IDs for your test data
5655
CONNECTOR_GRANT: 'grant:entitlement:group:1234:member:user:9876'
@@ -73,13 +72,20 @@ jobs:
7372
- name: Install baton
7473
run: ./scripts/get-baton.sh && mv baton /usr/local/bin
7574

75+
- name: Setup private key
76+
run: |
77+
echo "${{ secrets.BATON_PRIVATE_KEY }}" | base64 -d > /tmp/snowflake_key.p8
78+
chmod 600 /tmp/snowflake_key.p8
79+
7680
- name: Test Account Provisioning
77-
uses: ConductorOne/github-workflows/.github/actions/account-provisioning@main
81+
uses: ConductorOne/github-workflows/actions/account-provisioning@v4
7882
with:
7983
connector: './baton-snowflake'
8084
account-email: 'test-provisioning@example.com'
8185
account-login: 'test-provisioning-user'
8286
account-profile: '{"first_name": "Test", "last_name": "User", "name": "test-provisioning-user", "email": "test-provisioning@example.com"}'
8387
account-type: 'user'
8488
search-method: 'email'
89+
env:
90+
BATON_PRIVATE_KEY_PATH: /tmp/snowflake_key.p8
8591

0 commit comments

Comments
 (0)