Skip to content

Commit

Permalink
fix(ci): Adjust GitHub token permissions for gh CLI
Browse files Browse the repository at this point in the history
I hate CI/CD
  • Loading branch information
alexpovel committed Oct 22, 2023
1 parent b87c8dc commit 243878b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ jobs:
# attached yet.
if: steps.release.outputs.release_created
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# `secrets.GITHUB_TOKEN` would work here (with appropriate `permissions`),
# but just reuse what we already have.
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: >
gh release edit
${{ steps.release.outputs.tag_name }}
Expand Down Expand Up @@ -226,6 +228,9 @@ jobs:
- release-please
- build-upload

permissions:
contents: write # For `gh` to edit release

steps:
- uses: actions/checkout@v4
- name: Remove draft status from release
Expand Down

0 comments on commit 243878b

Please sign in to comment.