Skip to content

Conversation

tstellar
Copy link
Collaborator

@tstellar tstellar commented Aug 27, 2024

Called workflows don't have access to secrets by default, so we need to explicitly pass secrets that we use.

…rkflow

Called workflows don't have access to secrets by default, so we need
to explicitly pass secrets that we need to use.
@llvmbot
Copy link
Member

llvmbot commented Aug 27, 2024

@llvm/pr-subscribers-github-workflow

Author: Tom Stellard (tstellar)

Changes

Called workflows don't have access to secrets by default, so we need to explicitly pass secrets that we need to use.


Full diff: https://github.com/llvm/llvm-project/pull/106286.diff

1 Files Affected:

  • (modified) .github/workflows/release-tasks.yml (+5)
diff --git a/.github/workflows/release-tasks.yml b/.github/workflows/release-tasks.yml
index cf42730aaf8170..a6c21193a86df9 100644
--- a/.github/workflows/release-tasks.yml
+++ b/.github/workflows/release-tasks.yml
@@ -97,6 +97,11 @@ jobs:
       release-version: ${{ needs.validate-tag.outputs.release-version }}
       upload: true
       runs-on: ${{ matrix.runs-on }}
+    secrets:
+      # This will be empty for pull_request events, but that's fine, because
+      # the release-binaries workflow does not use this secret for the
+      # pull_request event.
+      RELEASE_TASKS_USER_TOKEN: ${{ secrets.RELEASE_TASKS_USER_TOKEN }}
 
   release-sources:
     name: Package Release Sources

Copy link
Contributor

@boomanaiden154 boomanaiden154 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit, otherwise LGTM.

@tstellar tstellar changed the title workflows/release-tasks: Pass required secrets to release-binaries workflow workflows/release-tasks: Pass required secrets to all called workflows Aug 27, 2024
@tstellar
Copy link
Collaborator Author

I've expanded the patch to fix several other places that were missing secrets.

Copy link
Collaborator

@tru tru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tstellar tstellar merged commit 9d81e7e into llvm:main Aug 29, 2024
@tstellar tstellar added this to the LLVM 19.X Release milestone Aug 29, 2024
@tstellar
Copy link
Collaborator Author

/cherry-pick 9d81e7e

llvmbot pushed a commit to llvmbot/llvm-project that referenced this pull request Aug 29, 2024
llvm#106286)

Called workflows don't have access to secrets by default, so we need to
explicitly pass secrets that we use.

(cherry picked from commit 9d81e7e)
@llvmbot
Copy link
Member

llvmbot commented Aug 29, 2024

/pull-request #106491

tru pushed a commit to llvmbot/llvm-project that referenced this pull request Sep 1, 2024
llvm#106286)

Called workflows don't have access to secrets by default, so we need to
explicitly pass secrets that we use.

(cherry picked from commit 9d81e7e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

4 participants