Skip to content

Commit d3afe85

Browse files
added role into destroy script to have correct permissions rather than default role
1 parent f7a76cf commit d3afe85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tasks/database-destroy/action.yml

+2
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ runs:
4444
-a $SNOWSQL_ACCOUNT \
4545
-u $SNOWSQL_USER \
4646
-w $SNOWSQL_WAREHOUSE \
47+
-r $SNOWSQL_ROLE \
4748
-f database-destroy.sql
4849
env:
4950
SNOWSQL_ACCOUNT: ${{ inputs.snowflake-account }}
5051
SNOWSQL_USER: ${{ inputs.snowflake-username }}
5152
SNOWSQL_PWD: ${{ inputs.snowflake-password }}
5253
SNOWSQL_DATABASE: ${{ inputs.target-database }}
5354
SNOWSQL_WAREHOUSE: ${{ inputs.snowflake-warehouse }}
55+
SNOWSQL_ROLE: ${{ inputs.snowflake-role }}
5456
working-directory: ${{ inputs.working-directory }}
5557

0 commit comments

Comments
 (0)