From 06defd306a54ae7c6b7b7466d520144c0d363cdb Mon Sep 17 00:00:00 2001 From: RouxAntoine Date: Thu, 5 Sep 2024 22:32:59 +0200 Subject: [PATCH] feature: add debug option --- action.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index e3fcff4..bf560a6 100644 --- a/action.yml +++ b/action.yml @@ -18,6 +18,10 @@ inputs: description: "java store password" required: false default: "changeit" + debug: + description: "show debug information about certificate truststore content" + required: false + default: "false" outputs: certificate-alias: value: ${{ steps.generate-alias-name.outputs.alias-name }} @@ -59,4 +63,16 @@ runs: echo "${{ inputs.ca-cert }}" | keytool -import -noprompt -trustcacerts -alias ${{ steps.generate-alias-name.outputs.alias-name }} -keystore ${{ inputs.store-path }} -storepass ${{ inputs.store-password }}; else echo "Certificate ${{ steps.generate-alias-name.outputs.alias-name }} already contained in the truststore"; - fi \ No newline at end of file + fi + + - name: Show added ${{ steps.generate-alias-name.outputs.alias-name }} for debugging + if: ${{ inputs.debug == 'true' }} + shell: bash + run: | + keytool -list -cacerts | grep antoine + + - name: List cert for debugging + if: ${{ inputs.debug == 'true' }} + shell: bash + run: | + keytool -list -cacerts