From 60f4b0760f644555895abbbce8d73cced4c93358 Mon Sep 17 00:00:00 2001 From: Bruno FS Ciconelle Date: Tue, 13 Aug 2024 15:37:04 -0300 Subject: [PATCH] chore: add permission to write tags to Release workflow Per Github Actions documentation, 'contents: write' is required to create a release. > Work with the contents of the repository. For example, contents: read permits an action to list the commits, and contents: write allows the action to create a release. https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#permissions --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff061ef..1a31534 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,7 @@ jobs: url: https://pypi.org/p/django-json-agg permissions: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + contents: write # Required for pushing tags - https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#permissions steps: - name: Check out the repository uses: actions/checkout@v3