[llvm] workflows/release-tasks: Pass required secrets to release-binaries workflow (PR #106286)
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 27 13:58:50 PDT 2024
https://github.com/tstellar created https://github.com/llvm/llvm-project/pull/106286
Called workflows don't have access to secrets by default, so we need to explicitly pass secrets that we need to use.
>From 6c7675d17ae86b1d86d6c2a360b75787d9d32db1 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Tue, 27 Aug 2024 13:49:04 -0700
Subject: [PATCH] workflows/release-tasks: Pass required secrets to
release-binaries workflow
Called workflows don't have access to secrets by default, so we need
to explicitly pass secrets that we need to use.
---
.github/workflows/release-tasks.yml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/.github/workflows/release-tasks.yml b/.github/workflows/release-tasks.yml
index cf42730aaf8170..a6c21193a86df9 100644
--- a/.github/workflows/release-tasks.yml
+++ b/.github/workflows/release-tasks.yml
@@ -97,6 +97,11 @@ jobs:
release-version: ${{ needs.validate-tag.outputs.release-version }}
upload: true
runs-on: ${{ matrix.runs-on }}
+ secrets:
+ # This will be empty for pull_request events, but that's fine, because
+ # the release-binaries workflow does not use this secret for the
+ # pull_request event.
+ RELEASE_TASKS_USER_TOKEN: ${{ secrets.RELEASE_TASKS_USER_TOKEN }}
release-sources:
name: Package Release Sources
More information about the llvm-commits
mailing list