From 23acba65f9c8642115be6455ac91e64cb199871a Mon Sep 17 00:00:00 2001 From: Andy Feller Date: Wed, 21 Aug 2024 00:07:28 -0400 Subject: [PATCH] Fix gh token usage --- .github/workflows/licenses.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/licenses.yml b/.github/workflows/licenses.yml index 62bf7b8dd..479349714 100644 --- a/.github/workflows/licenses.yml +++ b/.github/workflows/licenses.yml @@ -25,6 +25,8 @@ jobs: GOROOT=$(go env GOROOT) go-licenses report ./... --template=.github/licenses.tmpl --stderrthreshold=ERROR --logtostderr=false > "$LICENSE_DIR"/README.md - name: Upload Go license notices + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | tar czf "$LICENSE_ARCHIVE" "$LICENSE_DIR" gh release upload "$GITHUB_REF_NAME" --clobber -- "$LICENSE_ARCHIVE"