From be5ce1e3dcc90a5fb9f4e50e4327965e210642ea Mon Sep 17 00:00:00 2001 From: Darshit Chanpura Date: Thu, 6 Mar 2025 00:55:42 -0500 Subject: [PATCH] Replaces password generator step to a secure action Signed-off-by: Darshit Chanpura --- .github/workflows/plugin_install.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/plugin_install.yml b/.github/workflows/plugin_install.yml index 76d3012df5..3cc30eea3a 100644 --- a/.github/workflows/plugin_install.yml +++ b/.github/workflows/plugin_install.yml @@ -16,8 +16,9 @@ jobs: runs-on: ${{ matrix.os }} steps: - - id: random-password - uses: peternied/random-name@v1 + - name: Generate Strong Password + id: generate-password + uses: DarshitChanpura/secure-password-action@v1.0.0 - name: Set up JDK uses: actions/setup-java@v4 @@ -45,11 +46,11 @@ jobs: opensearch-version: ${{ env.OPENSEARCH_VERSION }} plugins: "file:$(pwd)/${{ env.PLUGIN_NAME }}.zip" security-enabled: true - admin-password: ${{ steps.random-password.outputs.generated_name }} + admin-password: ${{ steps.generate-password.outputs.password }} jdk-version: 21 - name: Run sanity tests uses: gradle/gradle-build-action@v3 with: cache-disabled: true - arguments: integTestRemote -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="opensearch" -Dhttps=true -Duser=admin -Dpassword=${{ steps.random-password.outputs.generated_name }} -i + arguments: integTestRemote -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="opensearch" -Dhttps=true -Duser=admin -Dpassword=${{ steps.generate-password.outputs.password }} -i