[llvm-branch-commits] [llvm] release/19.x: workflows/release-binaries-all: Pass secrets on to release-binaries workflow (#101866) (PR #102068)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Aug 5 14:47:48 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-github-workflow
Author: None (llvmbot)
<details>
<summary>Changes</summary>
Backport 1fb1a5d8e2c5a0cbaeb39ead68352e5e55752a6d
Requested by: @<!-- -->tstellar
---
Full diff: https://github.com/llvm/llvm-project/pull/102068.diff
2 Files Affected:
- (modified) .github/workflows/release-binaries-all.yml (+5-1)
- (modified) .github/workflows/release-binaries.yml (+5)
``````````diff
diff --git a/.github/workflows/release-binaries-all.yml b/.github/workflows/release-binaries-all.yml
index 73c9d96946e33..394b0c74d24ed 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 7cc8b7a1e56e8..847fe000c19a3 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
``````````
</details>
https://github.com/llvm/llvm-project/pull/102068
More information about the llvm-branch-commits
mailing list