[llvm-branch-commits] [llvm] release/22.x: workflows/release-binaries: Fix attestation artifact name (#176417) (PR #176618)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Jan 17 17:08:25 PST 2026


https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/176618

Backport 38be580aeef2fe3adf50b24854f39dad4a45c283

Requested by: @tstellar

>From 3a455166c88fcf6457c544cf4bebbe25712dd578 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Sat, 17 Jan 2026 17:01:09 -0800
Subject: [PATCH] workflows/release-binaries: Fix attestation artifact name
 (#176417)

We were contructing the attestation artifact name using the arch and the
OS of the current runner instead of using the runner that the builds
were done on. This led to a conflict in artifact names between all the
release binary jobs.

(cherry picked from commit 38be580aeef2fe3adf50b24854f39dad4a45c283)
---
 .github/workflows/release-binaries.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml
index e58b3443808f0..c1ceaa9a2dec6 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -62,6 +62,7 @@ jobs:
       release-binary-filename: ${{ steps.vars.outputs.release-binary-filename }}
       build-runs-on: ${{ steps.vars.outputs.build-runs-on }}
       test-runs-on: ${{ steps.vars.outputs.build-runs-on }}
+      attestation-name: ${{ steps.vars.outptus.attestation-name }}
 
     steps:
     # It's good practice to use setup-python, but this is also required on macos-14
@@ -199,6 +200,7 @@ jobs:
         echo "target-cmake-flags=$target_cmake_flags" >> $GITHUB_OUTPUT
         echo "build-runs-on=$build_runs_on" >> $GITHUB_OUTPUT
         echo "test-runs-on=$test_runs_on" >> $GITHUB_OUTPUT
+        echo "attestation-name=$RUNNER_OS-$RUNNER_ARCH-release-binary-attestation" >> $GITHUB_OUTPUT
 
   build-release-package:
     name: "Build Release Package"
@@ -334,6 +336,6 @@ jobs:
         uses: ./.github/workflows/upload-release-artifact
         with:
           artifact-id: ${{ needs.build-release-package.outputs.artifact-id }}
-          attestation-name: ${{ runner.os }}-${{ runner.arch }}-release-binary-attestation
+          attestation-name: ${{ needs.prepare.outputs.attestation-name }}
           digest: ${{ needs.build-release-package.outputs.digest }}
           upload: ${{ needs.prepare.outputs.upload }}



More information about the llvm-branch-commits mailing list