[llvm-branch-commits] [llvm] release/19.x: workflows: Fix permissions for release-sources job (#100750) (PR #102373)
Tobias Hieta via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Aug 10 03:29:46 PDT 2024
https://github.com/tru updated https://github.com/llvm/llvm-project/pull/102373
>From eea8e4ddd8206a5b04a7c7217e76a48ea2ff386b Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Wed, 7 Aug 2024 14:19:22 -0700
Subject: [PATCH] workflows: Fix permissions for release-sources job (#100750)
For reusable workflows, the called workflow cannot upgrade it's
permissions, and since the default permission is none, we need to
explicitly declare 'contents: read' when calling the release-sources
workflow.
Fixes the error:
The workflow is requesting 'contents: read', but is only allowed
'contents: none'.
(cherry picked from commit 82c2259aeb87f5cb418decfb6a1961287055e5d2)
---
.github/workflows/release-tasks.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/release-tasks.yml b/.github/workflows/release-tasks.yml
index b7fea0785fed29..cf42730aaf8170 100644
--- a/.github/workflows/release-tasks.yml
+++ b/.github/workflows/release-tasks.yml
@@ -101,6 +101,7 @@ jobs:
release-sources:
name: Package Release Sources
permissions:
+ contents: read
id-token: write
attestations: write
needs:
More information about the llvm-branch-commits
mailing list