[llvm-branch-commits] [llvm] release/21.x: workflows/release-documentation: Allow secrets pass through from calling workflow (#162765) (PR #164538)

Cullen Rhodes via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Oct 27 03:16:59 PDT 2025


https://github.com/c-rhodes updated https://github.com/llvm/llvm-project/pull/164538

>From e94561caef487fbbadb50ad66ef2b21529aa388a Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Tue, 21 Oct 2025 19:26:56 -0700
Subject: [PATCH] workflows/release-documentation: Allow secrets pass through
 from calling workflow (#162765)

This should fix the part of the workflow that creates a PR with the new
documentation.

(cherry picked from commit 59d4d5c1c3b6f0f81ac51bea26605466268f83e9)
---
 .github/workflows/release-documentation.yml | 4 ++++
 .github/workflows/release-tasks.yml         | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/.github/workflows/release-documentation.yml b/.github/workflows/release-documentation.yml
index 5a0aa063d32ac..e07da3d9f3009 100644
--- a/.github/workflows/release-documentation.yml
+++ b/.github/workflows/release-documentation.yml
@@ -25,6 +25,10 @@ on:
         description: 'Upload documentation'
         required: false
         type: boolean
+    secrets:
+      WWW_RELEASES_TOKEN:
+        description: "Secret used to create a PR with the documentation changes."
+        required: false
 
 jobs:
   release-documentation:
diff --git a/.github/workflows/release-tasks.yml b/.github/workflows/release-tasks.yml
index c9ae7e1ce97c3..894661a5112d5 100644
--- a/.github/workflows/release-tasks.yml
+++ b/.github/workflows/release-tasks.yml
@@ -54,6 +54,9 @@ jobs:
     with:
       release-version: ${{ needs.validate-tag.outputs.release-version }}
       upload: true
+    # Called workflows don't have access to secrets by default, so we need to explicitly pass secrets that we use.
+    secrets:
+      WWW_RELEASES_TOKEN: ${{ secrets.WWW_RELEASES_TOKEN }}
 
   release-doxygen:
     name: Build and Upload Release Doxygen



More information about the llvm-branch-commits mailing list