[llvm] Revert "workflows: Use main-branch-only environment when using ISSUE_SUBSCRIBER_TOKEN (#179990)" (PR #181352)

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 13 04:25:02 PST 2026


https://github.com/tstellar created https://github.com/llvm/llvm-project/pull/181352

This reverts commit 31f31dd9d0460834f2ae67247d3886fec4931d6d.

This commit was causing PRs to be spammed with messages like:

"llvmbot temporarily deployed to main-branch-only — with GitHub Actions Inactive"

This was causing confusion, and is not worth the marginal security benefit.  I also think this can be avoided by using called workflows, but I still need to investigate this.

>From bea45b6f1b4693eb21528094d7a3241d86afbd73 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Fri, 13 Feb 2026 04:20:44 -0800
Subject: [PATCH] Revert "workflows: Use main-branch-only environment when
 using ISSUE_SUBSCRIBER_TOKEN (#179990)"
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This reverts commit 31f31dd9d0460834f2ae67247d3886fec4931d6d.

This commit was causing PRs to be spammed with messages like:

"llvmbot temporarily deployed to main-branch-only — with GitHub Actions Inactive"

This was causing confusion, and is not worth the marginal security
benefit.  I also think this can be avoided by using called workflows,
but I still need to investigate this.
---
 .github/workflows/issue-subscriber.yml    | 1 -
 .github/workflows/new-issues.yml          | 1 -
 .github/workflows/new-prs.yml             | 2 --
 .github/workflows/pr-subscriber.yml       | 2 --
 .github/workflows/release-asset-audit.yml | 1 -
 5 files changed, 7 deletions(-)

diff --git a/.github/workflows/issue-subscriber.yml b/.github/workflows/issue-subscriber.yml
index 6394c9ae7e695..c839776c94cb2 100644
--- a/.github/workflows/issue-subscriber.yml
+++ b/.github/workflows/issue-subscriber.yml
@@ -10,7 +10,6 @@ permissions:
 
 jobs:
   auto-subscribe:
-    environment: main-branch-only
     runs-on: ubuntu-24.04
     if: github.repository == 'llvm/llvm-project'
     steps:
diff --git a/.github/workflows/new-issues.yml b/.github/workflows/new-issues.yml
index 5a79197ced595..3b372a632e3c8 100644
--- a/.github/workflows/new-issues.yml
+++ b/.github/workflows/new-issues.yml
@@ -10,7 +10,6 @@ jobs:
   automate-issues-labels:
     permissions:
       issues: write
-    environment: main-branch-only
     runs-on: ubuntu-24.04
     if: github.repository == 'llvm/llvm-project'
     steps:
diff --git a/.github/workflows/new-prs.yml b/.github/workflows/new-prs.yml
index 4b4e3b89e7fcf..771f509849fe0 100644
--- a/.github/workflows/new-prs.yml
+++ b/.github/workflows/new-prs.yml
@@ -55,8 +55,6 @@ jobs:
   automate-prs-labels:
     # Greet first so that only the author gets that notification.
     needs: greeter
-    # See https://github.blog/changelog/2025-11-07-actions-pull_request_target-and-environment-branch-protections-changes/
-    environment: main-branch-only
     runs-on: ubuntu-24.04
     # Ignore PRs with more than 10 commits.  Pull requests with a lot of
     # commits tend to be accidents usually when someone made a mistake while trying
diff --git a/.github/workflows/pr-subscriber.yml b/.github/workflows/pr-subscriber.yml
index 8aac8305e6bf2..f319826f045d1 100644
--- a/.github/workflows/pr-subscriber.yml
+++ b/.github/workflows/pr-subscriber.yml
@@ -10,8 +10,6 @@ permissions:
 
 jobs:
   auto-subscribe:
-    # See https://github.blog/changelog/2025-11-07-actions-pull_request_target-and-environment-branch-protections-changes/
-    environment: main-branch-only
     runs-on: ubuntu-24.04
     if: github.repository == 'llvm/llvm-project'
     steps:
diff --git a/.github/workflows/release-asset-audit.yml b/.github/workflows/release-asset-audit.yml
index efcf16c813f0f..71cc23a64c3b0 100644
--- a/.github/workflows/release-asset-audit.yml
+++ b/.github/workflows/release-asset-audit.yml
@@ -45,7 +45,6 @@ jobs:
 
   notify-audit-failed:
     name: "Notify Audit Failed"
-    environment: main-branch-only
     runs-on: ubuntu-24.04
     if: >-
       github.repository == 'llvm/llvm-project' &&



More information about the llvm-commits mailing list