Changed integration tests user auth to private key #124
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#name: "CLI Action testing" | |
# | |
#on: | |
# schedule: | |
# - cron: "0 0 * * *" | |
# workflow_dispatch: | |
# | |
#jobs: | |
# version: | |
# name: "Check Snowflake CLI version" | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout repo | |
# uses: actions/checkout@v4 | |
# with: | |
# persist-credentials: false | |
# - uses: Snowflake-Labs/snowflake-cli-action@v1 | |
# with: | |
# cli-version: "latest" | |
# default-config-file-path: "tests_integration/config/connection_configs.toml" | |
# - name: Set workspace parent directory | |
# run: echo "PARENT_DIR=$(dirname "${{ github.workspace }}")" >> $GITHUB_ENV | |
# - name: Test connection | |
# env: | |
# TERM: unknown | |
# SNOWFLAKE_CONNECTIONS_INTEGRATION_AUTHENTICATOR: SNOWFLAKE_JWT | |
# SNOWFLAKE_CONNECTIONS_INTEGRATION_USER: ${{ secrets.SNOWFLAKE_USER }} | |
# SNOWFLAKE_CONNECTIONS_INTEGRATION_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }} | |
# SNOWFLAKE_CONNECTIONS_INTEGRATION_PRIVATE_KEY_PATH: ${{ env.PARENT_DIR }}/.ssh/key.p8 | |
# SNOWFLAKE_CONNECTIONS_INTEGRATION_PRIVATE_KEY: ${{ secrets.SNOWFLAKE_PRIVATE_KEY }} | |
# run: | | |
# mkdir ${{ env.PARENT_DIR }}/.ssh | |
# echo "${SNOWFLAKE_PRIVATE_KEY}" > ${{ env.PARENT_DIR }}/.ssh/key.p8 | |
# sudo chmod 600 ${{ env.PARENT_DIR }}/.ssh/key.p8 | |
# snow connection test -c integration | grep Status |