Skip to content

Commit f9cfef2

Browse files
committed
fix(ci): use GCP KMS credentials base64 encoded
1 parent 6a16810 commit f9cfef2

File tree

1 file changed

+6
-1
lines changed
  • .github/workflows/actions/deploy-terraform-infrastructure

1 file changed

+6
-1
lines changed

.github/workflows/actions/deploy-terraform-infrastructure/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ runs:
214214
chmod u+x ./assets/tools/utils/google-credentials-public-key.sh
215215
./assets/tools/utils/google-credentials-public-key.sh ./google-application-credentials.json ./assets/ssh_keys-${{ inputs.google_compute_instance_ssh_keys_environment }} curry
216216
217+
- name: Prepare variables
218+
shell: bash
219+
id: prepare
220+
run: echo "mithril_aggregator_ancillary_signer_gcp_kms_credentials_base64=$(echo '${{ inputs.mithril_aggregator_ancillary_signer_gcp_kms_credentials }}' | base64 -w 0)" >> $GITHUB_OUTPUT
221+
217222
- name: Prepare terraform variables
218223
shell: bash
219224
working-directory: mithril-infra
@@ -264,7 +269,7 @@ runs:
264269
mithril_aggregator_ancillary_signer_type = "${{ inputs.mithril_aggregator_ancillary_signer_type }}"
265270
mithril_aggregator_ancillary_signer_secret_key = "${{ inputs.mithril_aggregator_ancillary_signer_secret_key }}"
266271
mithril_aggregator_ancillary_signer_gcp_kms_resource_name = "${{ inputs.mithril_aggregator_ancillary_signer_gcp_kms_resource_name }}"
267-
mithril_aggregator_ancillary_signer_gcp_kms_credentials = "${{ inputs.mithril_aggregator_ancillary_signer_gcp_kms_credentials }}"
272+
mithril_aggregator_ancillary_signer_gcp_kms_credentials = "${{ steps.prepare.outputs.mithril_aggregator_ancillary_signer_gcp_kms_credentials_base64 }}"
268273
prometheus_auth_username = "${{ inputs.prometheus_auth_username }}"
269274
prometheus_auth_password = "${{ inputs.prometheus_auth_password }}"
270275
prometheus_ingest_host = "${{ inputs.prometheus_ingest_host }}"

0 commit comments

Comments
 (0)