From 8900de7a1b9513330e28c5493193ac55f74bdd86 Mon Sep 17 00:00:00 2001 From: Ionut Balutoiu Date: Tue, 22 Aug 2023 11:17:43 +0300 Subject: [PATCH] [integration-tests] Update `randomStringGenerator` bash function Some integration tests workflows failed with: ``` Error: Invalid format 'ORG_WEBHOOK_SECRET=***' ``` or ``` Error: Invalid format 'GARM_PASSWORD=***' ``` Workflow runs logs: * https://github.com/cloudbase/garm/actions/runs/5920389694/job/16051606203#step:7:26 * https://github.com/cloudbase/garm/actions/runs/5908193226/job/16027297143#step:7:26 This is a transient error, as it only happens sometimes. I suspect that sometimes there is some illegal sequence of characters in the random generated strings. Thus, the GitHub actions logic to parse the environment fails. This change removes the special characters that would have a special meaning in bash, from the `randomStringGenerator` function, in hopes to fix the transient issue. Signed-off-by: Ionut Balutoiu --- .github/workflows/integration-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 924ef3e8..9df7a729 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -31,7 +31,7 @@ jobs: - name: Generate secrets run: | function randomStringGenerator() { - tr -dc "a-zA-Z0-9@#$%^&*()_+?><~\`;'" <~;"