[llvm-branch-commits] [llvm] release/19.x: workflows/release-binaries-all: Pass secrets on to release-binaries workflow (#101866) (PR #102068)
Tobias Hieta via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Aug 10 03:28:08 PDT 2024
https://github.com/tru updated https://github.com/llvm/llvm-project/pull/102068
>From 5972d4ddf9a66eb2444c048aab1f5896f0a30d15 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Mon, 5 Aug 2024 14:40:46 -0700
Subject: [PATCH] workflows/release-binaries-all: Pass secrets on to
release-binaries workflow (#101866)
A called workflow does not have access to secrets by default, so we need
to explicitly pass any secret that we want to use.
(cherry picked from commit 1fb1a5d8e2c5a0cbaeb39ead68352e5e55752a6d)
---
.github/workflows/release-binaries-all.yml | 6 +++++-
.github/workflows/release-binaries.yml | 5 +++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/release-binaries-all.yml b/.github/workflows/release-binaries-all.yml
index 73c9d96946e33a..394b0c74d24edd 100644
--- a/.github/workflows/release-binaries-all.yml
+++ b/.github/workflows/release-binaries-all.yml
@@ -91,4 +91,8 @@ jobs:
release-version: "${{ needs.setup-variables.outputs.release-version }}"
upload: ${{ needs.setup-variables.outputs.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 }}
diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml
index fae04e19b246b3..509016e5b89c45 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -37,6 +37,11 @@ on:
description: "Runner to use for the build"
required: true
type: string
+ secrets:
+ RELEASE_TASKS_USER_TOKEN:
+ description: "Secret used to check user permissions."
+ required: false
+
permissions:
contents: read # Default everything to read-only
More information about the llvm-branch-commits
mailing list