From 9dcdaa3cc50047d995f39c3952a31a404f939c49 Mon Sep 17 00:00:00 2001 From: Aleksandr Borovskii Date: Mon, 16 Nov 2026 14:12:35 +0100 Subject: [PATCH] ci: point e2e workflow at BrightSec/bright-cli The repo moved from NeuraLegion to BrightSec. The unauthenticated releases/latest call got a 301, which curl -s did not follow, so the resolved version was "null" and every download returned 404. Use the new org in all release URLs and fail the lookup step on HTTP errors or a missing tag_name. --- .github/workflows/test-cli.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-cli.yml b/.github/workflows/test-cli.yml index fbdf8e66..f876e2af 100644 --- a/.github/workflows/test-cli.yml +++ b/.github/workflows/test-cli.yml @@ -52,7 +52,7 @@ jobs: if [ -n "${{ inputs.version }}" ]; then echo "version=${{ inputs.version }}" >> $GITHUB_OUTPUT else - VERSION=$(curl -s https://api.github.com/repos/NeuraLegion/bright-cli/releases/latest | jq -r '.tag_name') + VERSION=$(curl -fsSL https://api.github.com/repos/BrightSec/bright-cli/releases/latest | jq -er '.tag_name') echo "version=$VERSION" >> $GITHUB_OUTPUT fi @@ -116,7 +116,7 @@ jobs: - name: Download Executable shell: bash run: | - curl -fsSL https://github.com/NeuraLegion/bright-cli/releases/download/${{ needs.resolve-version.outputs.version }}/${{ matrix.executable }} > ./${{ matrix.executable }} + curl -fsSL https://github.com/BrightSec/bright-cli/releases/download/${{ needs.resolve-version.outputs.version }}/${{ matrix.executable }} > ./${{ matrix.executable }} chmod +x ./${{ matrix.executable }} - name: Download Target @@ -156,7 +156,7 @@ jobs: - name: Download and Install Bright CLI using MSI shell: pwsh run: | - Invoke-WebRequest -Uri 'https://github.com/NeuraLegion/bright-cli/releases/download/${{ needs.resolve-version.outputs.version }}/bright-cli.msi' -OutFile bright-cli.msi + Invoke-WebRequest -Uri 'https://github.com/BrightSec/bright-cli/releases/download/${{ needs.resolve-version.outputs.version }}/bright-cli.msi' -OutFile bright-cli.msi $lastExitCode = (Start-Process msiexec.exe ` -ArgumentList "/i bright-cli.msi /qn /norestart /l*v `"$($pwd)\install.log`"" ` -PassThru `