1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(CI): Grant action content write permission for release upload

By default our organization on GH only grants a more restricted read
permission to actions for content APIs, which include both writing to
repo for nightly tag creation, and writing to releases for nightly and
tag release creation or updates.
This commit is contained in:
Anthony Bilinski 2022-01-10 00:01:32 -08:00
parent b657fa2bc6
commit 1bc72ab1a4
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -5,6 +5,8 @@ jobs:
name: Update nightly release tag
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- name: Move nightly tag to head for nightly release
@ -203,6 +205,8 @@ jobs:
needs.build-ubuntu-lts-docker.result == 'success' &&
(needs.update-nightly-tag.result == 'success' ||
needs.update-nightly-tag.result == 'skipped')
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/load-docker-image
@ -256,6 +260,8 @@ jobs:
needs.build-flatpak-docker.result == 'success' &&
(needs.update-nightly-tag.result == 'success' ||
needs.update-nightly-tag.result == 'skipped')
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/load-docker-image
@ -308,6 +314,8 @@ jobs:
needs.build-windows-docker.result == 'success' &&
(needs.update-nightly-tag.result == 'success' ||
needs.update-nightly-tag.result == 'skipped')
permissions:
contents: write
strategy:
matrix:
build_type: [debug, release]
@ -378,6 +386,8 @@ jobs:
needs.build-windows-i686-docker.result == 'success' &&
(needs.update-nightly-tag.result == 'success' ||
needs.update-nightly-tag.result == 'skipped')
permissions:
contents: write
strategy:
matrix:
build_type: [debug, release]
@ -447,6 +457,8 @@ jobs:
always() &&
(needs.update-nightly-tag.result == 'success' ||
needs.update-nightly-tag.result == 'skipped')
permissions:
contents: write
env:
TRAVIS: true
TRAVIS_BUILD_DIR: ${{ github.workspace }}