Skip to content

Commit

Permalink
Fix release workflow permissions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ferd committed Apr 10, 2024
1 parent fb980df commit a28d57e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
tags:
- '*'

permissions:
contents: write

jobs:
build:
name: Create release and publish escript for every new tag
Expand Down

0 comments on commit a28d57e

Please sign in to comment.