ci: fix permissions

This commit is contained in:
winston 2023-12-28 11:47:40 +01:00
parent 8c506c7526
commit 7750312691
No known key found for this signature in database
GPG Key ID: 3786770EDBC2B481
1 changed files with 5 additions and 5 deletions

View File

@ -4,11 +4,14 @@ on:
push: push:
branches: [main] branches: [main]
permissions:
contents: write
id-token: write
pull-requests: write
jobs: jobs:
release-please: release-please:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
pull-requests: write
steps: steps:
- uses: google-github-actions/release-please-action@v4 - uses: google-github-actions/release-please-action@v4
id: release id: release
@ -20,9 +23,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: release-please needs: release-please
if: ${{ needs.release-please.outputs.release_created }} if: ${{ needs.release-please.outputs.release_created }}
permissions:
contents: write
id-token: write
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4