[llvm] workflows/release-tasks: Use app generated token for publishing lit releases (PR #195312)
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Fri May 1 11:04:08 PDT 2026
https://github.com/tstellar created https://github.com/llvm/llvm-project/pull/195312
We are trying to move a way from using secrets associated with the llvmbot account, so this drops another one of its users.
>From 39b6ea60edd6deecd446241cc7e9cc807f2f30f9 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Fri, 1 May 2026 11:01:11 -0700
Subject: [PATCH] workflows/release-tasks: Use app generated token for
publishing lit releases
We are trying to move a way from using secrets associated with the llvmbot
account, so this drops another one of its users.
---
.github/workflows/release-tasks.yml | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/release-tasks.yml b/.github/workflows/release-tasks.yml
index 70cb4f639d0e6..03656c0b3e395 100644
--- a/.github/workflows/release-tasks.yml
+++ b/.github/workflows/release-tasks.yml
@@ -77,6 +77,9 @@ jobs:
release-lit:
name: Release Lit
runs-on: ubuntu-24.04
+ environment:
+ name: release
+ deployment: false
permissions:
id-token: write # Requred for pypi publishing
needs:
@@ -94,10 +97,18 @@ jobs:
sudo apt-get update
sudo apt-get install -y python3-build python3-psutil python3-github
+ - id: app-token
+ uses: actions/create-github-app-token at 1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
+ with:
+ app-id: ${{ secrets.LLVM_TOKEN_GENERATOR_CLIENT_ID }}
+ private-key: ${{ secrets.LLVM_TOKEN_GENERATOR_PRIVATE_KEY }}
+ owner: ${{ github.repository_owner }}
+ permission-members: read
+
- name: Check Permissions
env:
GITHUB_TOKEN: ${{ github.token }}
- USER_TOKEN: ${{ secrets.RELEASE_TASKS_USER_TOKEN }}
+ USER_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
./llvm/utils/release/./github-upload-release.py --token "$GITHUB_TOKEN" --user ${{ github.actor }} --user-token "$USER_TOKEN" check-permissions
More information about the llvm-commits
mailing list