Skip to content

Commit

Permalink
chore: add permission to write tags to Release workflow
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bruno-fs committed Aug 13, 2024
1 parent 38ef6c0 commit 60f4b07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 60f4b07

Please sign in to comment.