From 7ce456edefcb30c9daa067a1e89bcdc71add9580 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Tue, 9 Sep 2025 19:45:28 +0200 Subject: [PATCH] CI release: move Azure login closer to signing step in Windows workflow The Azure login token validity has been decreased so login just before signing Signed-off-by: Nicola Murino --- .github/workflows/release.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c1b0df19..ebae3579 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ permissions: contents: write env: - GO_VERSION: 1.24.0 + GO_VERSION: 1.24.7 jobs: prepare-sources-with-deps: @@ -54,13 +54,6 @@ jobs: with: go-version: ${{ env.GO_VERSION }} - - name: Azure login - uses: azure/login@v2 - with: - client-id: ${{ secrets.AZURE_CLIENT_ID }} - tenant-id: ${{ secrets.AZURE_TENANT_ID }} - subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - - name: Get SFTPGo version id: get_version run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT @@ -90,6 +83,13 @@ jobs: env: SFTPGO_VERSION: ${{ steps.get_version.outputs.VERSION }} + - name: Azure login + uses: azure/login@v2 + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + - name: Sign binaries uses: azure/trusted-signing-action@v0.5.9 with: