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

Backport d0ff94fdeb0732124e163a68f821a8fe2e81013e

Requested by: @tstellar

>From 3005b8689f43c52e6724a7ad4add19cf23616a5a Mon Sep 17 00:00:00 2001
From: Tom Stellard <[email protected]>
Date: Thu, 12 Feb 2026 15:01:44 -0800
Subject: [PATCH] workflows/release-documentation: Add release environment
 (#181063)

This way we can limit access to the secrets to the main and release
branches.

This is a partial re-commit of b6ee085068972a41f3b2735a9f7e3ca48eab0f00

(cherry picked from commit d0ff94fdeb0732124e163a68f821a8fe2e81013e)
---
 .github/workflows/release-documentation.yml | 1 +
 .github/workflows/release-tasks.yml         | 4 ----
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/.github/workflows/release-documentation.yml 
b/.github/workflows/release-documentation.yml
index 1d5d1f6bc03fa..3828633ec3921 100644
--- a/.github/workflows/release-documentation.yml
+++ b/.github/workflows/release-documentation.yml
@@ -36,6 +36,7 @@ on:
 jobs:
   release-documentation:
     name: Build and Upload Release Documentation
+    environment: release
     runs-on: ubuntu-24.04
     env:
       upload: ${{ inputs.upload && !contains(inputs.release-version, 'rc') }}
diff --git a/.github/workflows/release-tasks.yml 
b/.github/workflows/release-tasks.yml
index ce44311507a83..cfa0f9d81dcaa 100644
--- a/.github/workflows/release-tasks.yml
+++ b/.github/workflows/release-tasks.yml
@@ -54,10 +54,6 @@ 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:
-      LLVMBOT_WWW_RELEASES_PUSH: ${{ secrets.LLVMBOT_WWW_RELEASES_PUSH }}
-      WWW_RELEASES_TOKEN: ${{ secrets.WWW_RELEASES_TOKEN }}
 
   release-doxygen:
     name: Build and Upload Release Doxygen

_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to