ci: use GitHub Actions token instead of chatops/release_notes secrets

It seems more secure to use the controlled & limited token than an
ambient secret.
This commit is contained in:
Ran Benita
2021-05-16 11:37:21 +03:00
parent 6bc6ec323a
commit 864a2bc0a3
5 changed files with 13 additions and 12 deletions

View File

@@ -204,7 +204,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
contents: write
needs: [build]
@@ -236,7 +236,7 @@ jobs:
- name: Publish GitHub release notes
env:
GH_RELEASE_NOTES_TOKEN: ${{ secrets.release_notes }}
GH_RELEASE_NOTES_TOKEN: ${{ github.token }}
run: |
sudo apt-get install pandoc
tox -e publish-gh-release-notes