Skip to content

Commit

Permalink
Update workflow to have write permissions for goreleaser creation of …
Browse files Browse the repository at this point in the history
…GH release (#100)

* Update release.yml

* switch to job level permission
  • Loading branch information
austinvalle authored Feb 22, 2023
1 parent 933c43f commit bd6c270
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
required: true

permissions:
contents: read # Write operations use service account PAT
contents: read # Changelog commit operations use service account PAT

env:
CI_COMMIT_AUTHOR: hc-github-team-tf-provider-devex
Expand Down Expand Up @@ -102,6 +102,8 @@ jobs:
terraform-provider-release:
name: 'Terraform Provider Release'
needs: [ release-notes ]
permissions:
contents: write # Needed for goreleaser to create GitHub release
uses: hashicorp/ghaction-terraform-provider-release/.github/workflows/hashicorp.yml@106e6d08159ccec423310cc2c706bae59f46c09c # v2.2.0
secrets:
hc-releases-key-prod: '${{ secrets.HC_RELEASES_KEY_PROD }}'
Expand Down

0 comments on commit bd6c270

Please sign in to comment.