feature: add debug option to shoow retrieve root ca

This commit is contained in:
RouxAntoine 2024-09-05 22:41:36 +02:00
parent 53467717df
commit 40332f3a6a
Signed by: antoine
GPG Key ID: 098FB66FC0475E70

View File

@ -12,6 +12,10 @@ inputs:
description: 'cfssl pki API port'
default: '444'
required: false
debug:
description: "show debug information about certificate truststore content"
required: false
default: "false"
outputs:
ca-cert:
value: "${{ steps.retrieve-ca-cert.outputs.ca-cert }}"
@ -34,3 +38,10 @@ runs:
echo "EOF" >> "$GITHUB_OUTPUT"
echo "ca-cert-base64=$ca_cert_base64" >> "$GITHUB_OUTPUT"
- name: Show retrieve root CA cert
if: ${{ inputs.debug == 'true' }}
shell: bash
run: |
echo "${{ steps.retrieve-ca-cert.outputs.ca-cert }}"
echo "${{ steps.retrieve-ca-cert.outputs.ca-cert-base64 }}"