Skip to content

Commit 91e2ac2

Browse files
put credentials in file in action
1 parent be8b567 commit 91e2ac2

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

action.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ inputs:
44
organisation_id:
55
description: 'The Organisation ID, to validate all Databases in your STACKIT organisation.'
66
required: true
7-
stackit_service_account_key_path:
8-
description: "Path to a STACKIT Service Account Key to authenticate against STACKIT API"
7+
stackit_service_account_key:
8+
description: "STACKIT Service Account Key to authenticate against STACKIT API"
99
required: true
1010

1111
runs:
12+
1213
using: 'composite'
1314
steps:
1415
- run: echo "INSTALL PYTHON"
@@ -38,12 +39,14 @@ runs:
3839
run: uv sync
3940
working-directory: ${{ github.action_path }}
4041
shell: bash
41-
- name: "Test credentials path"
42+
- name: "Setup STACKIT Credentials"
4243
shell: bash
43-
run: echo ${{ inputs.stackit_service_account_key_path }}
44+
env:
45+
STACKIT_SERVICE_ACCOUNT_KEY: ${{ inputs.stackit_service_account_key }}
46+
run: echo "$STACKIT_SERVICE_ACCOUNT_KEY" > ${{ github.action_path }}/stackit-credentials.json
4447
- name: "Validate STACKIT Database ACLs"
4548
shell: bash
4649
run: uv run src/main.py validate-org ${{ inputs.organisation_id }}
4750
working-directory: ${{ github.action_path }}
4851
env:
49-
STACKIT_SERVICE_ACCOUNT_KEY_PATH: ${{ inputs.stackit_service_account_key_path }}
52+
STACKIT_SERVICE_ACCOUNT_KEY_PATH: ${{ github.action_path }}/stackit-credentials.json

0 commit comments

Comments
 (0)