From c8305c21e50c9bd3c1aa7c0d39fcfe676b82e53a Mon Sep 17 00:00:00 2001 From: Jan Max Tiedemann Date: Wed, 27 Nov 2024 01:47:55 +0100 Subject: [PATCH] debug: uncomment secret names + add debug output --- actions/gcp-gsm-load-secrets/action.yaml | 3 +++ actions/gcp-gsm-parse-secrets/main.py | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/actions/gcp-gsm-load-secrets/action.yaml b/actions/gcp-gsm-load-secrets/action.yaml index 3ee421a48..d72b13b86 100644 --- a/actions/gcp-gsm-load-secrets/action.yaml +++ b/actions/gcp-gsm-load-secrets/action.yaml @@ -40,6 +40,9 @@ runs: with: secrets: ${{ steps.parse_secrets.outputs.secrets-list }} export_to_environment: ${{ inputs.export-to-environment }} + - name: "test" + run: | + echo '${{ toJSON(steps.secrets.outputs) }}' - name: "Set outputs" uses: "actions/github-script@v7" with: diff --git a/actions/gcp-gsm-parse-secrets/main.py b/actions/gcp-gsm-parse-secrets/main.py index 14bdc0d01..477ddc016 100644 --- a/actions/gcp-gsm-parse-secrets/main.py +++ b/actions/gcp-gsm-parse-secrets/main.py @@ -67,9 +67,9 @@ def main( set_github_action_output( "secrets-list", "\n".join(output) + "\n", github_output_delimter ) - # set_github_action_output( - # "secret-names", ",".join(parsed_secret_names), github_output_delimter - # ) + set_github_action_output( + "secret-names", ",".join(parsed_secret_names), github_output_delimter + ) if __name__ == "__main__":