From a28d57ef25347d0cce25e93680ce75ee6c0dcf8a Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Wed, 10 Apr 2024 08:30:08 -0400 Subject: [PATCH] Fix release workflow permissions I believe that the OTP org, which has the parent org for this repo, has narrowed permissions for github action tokens since the last release. We can ask for more permissions for this with the [proper permissions declaration](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions). This PR is an attempt at turning this on so we can publish Rebar3 3.23.0 by unlocking the `contents` permission in write mode on tagged pushes, which should unblock us. If it doesn't work I'll need to go back to manually tagging and maybe figuring out local containers for build artifact uploads. --- .github/workflows/publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 292e5b3dd..7b6100f1f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,6 +5,9 @@ on: tags: - '*' +permissions: + contents: write + jobs: build: name: Create release and publish escript for every new tag