From 55057f909019c2c676cb5d1f189f1b552802584c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Michon?= Date: Fri, 15 Mar 2024 14:05:41 +0100 Subject: [PATCH] fix(workflows): write permissions --- .github/workflows/publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ec4e21f8..fa47515d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,8 +2,11 @@ name: Test and Release Go CLI on: [push] +# The list of permissions is explained on the GitHub doc: +# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs permissions: - contents: read + # Write permissions is needed to create a new release + contents: write # allow read access to pull request. Use with `only-new-issues` option. pull-requests: read