Skip to content

Commit

Permalink
Add contents:write permissions to be able to create releases
Browse files Browse the repository at this point in the history
Signed-off-by: Brend Smits <[email protected]>
  • Loading branch information
Brend-Smits committed Mar 2, 2022
1 parent eafc965 commit 1d823a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
permissions:
packages: write
id-token: write
contents: write

steps:
- name: Set up Go
Expand Down Expand Up @@ -156,6 +157,7 @@ jobs:
permissions:
packages: write
id-token: write
contents: write
env:
TAGS: "${{ needs.release.outputs.container_tags }}"

Expand Down Expand Up @@ -203,6 +205,7 @@ jobs:
permissions:
packages: write
id-token: write
contents: write

steps:
- name: Generate provenance for Release
Expand Down Expand Up @@ -246,6 +249,7 @@ jobs:
permissions:
packages: write
id-token: write
contents: write

strategy:
matrix:
Expand Down
2 changes: 0 additions & 2 deletions .goreleaser.draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,5 @@ changelog:
release:
draft: true
prerelease: auto
extra_files:
- glob: "./cosign.pub"
footer: |
**Full Changelog**: https://github.com/philips-labs/slsa-provenance-action/compare/{{ .PreviousTag }}...{{ .Tag }}

0 comments on commit 1d823a5

Please sign in to comment.