Fix gh token usage
This commit is contained in:
parent
0ca266bc9a
commit
23acba65f9
1 changed files with 2 additions and 0 deletions
2
.github/workflows/licenses.yml
vendored
2
.github/workflows/licenses.yml
vendored
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue