From ef0294116f6485c18725ba60d0a7865d62d09e8a Mon Sep 17 00:00:00 2001 From: Jonathan Grahl Date: Thu, 14 Mar 2024 17:37:54 +0100 Subject: [PATCH] ci: give write permission to workflow --- .github/workflows/main.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 12c836b..9f4ca9e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -56,9 +56,10 @@ jobs: build: needs: base if: ${{ needs.base.outputs.go_updated == 'true' }} - runs-on: ubuntu-latest - + permissions: + contents: write + pull-requests: write outputs: tag_commit: ${{ steps.update_image.outputs.commit }} @@ -124,7 +125,9 @@ jobs: needs.base.result == 'success' && (needs.build.result == 'success' || needs.base.outputs.yaml_updated == 'true') runs-on: ubuntu-latest - + permissions: + contents: write + pull-requests: write steps: - name: Retrieve commit ref id: commit_ref