From 0d87ef6b48b836c9e564705d9cf61dccab40af3e Mon Sep 17 00:00:00 2001 From: Mark Elliot Date: Wed, 28 Jul 2021 17:46:37 -0400 Subject: [PATCH] All tasks can access the read token --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1ede0d1..5f0628d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,6 +9,8 @@ jobs: permissions: contents: read packages: write + env: + GH_READ_PACKAGES_TOKEN: ${{ secrets.GH_READ_PACKAGES_TOKEN }} steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v2 @@ -21,5 +23,4 @@ jobs: run: ./gradlew --no-daemon publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_READ_PACKAGES_TOKEN: ${{ secrets.GH_READ_PACKAGES_TOKEN }}