Skip to content

Commit b14781c

Browse files
chore(ci): correct workflow permissions (#226)
- Revert use of GitHub PAT commit 8bd04f6 - Add contents: write permissions
1 parent 8bd04f6 commit b14781c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
build:
2525
runs-on: ubuntu-latest
2626
permissions:
27-
contents: read # For code checkout
27+
contents: write # For code checkout and publishing releases
2828
packages: write # For pushing images to registries
2929
attestations: write # For generating provenance and SBOMs
3030
id-token: write # For OIDC auth to Docker Hub and GHCR
@@ -96,7 +96,7 @@ jobs:
9696
# Skip publishing during dry-run
9797
args: release --config build/goreleaser/${{ inputs.build-type }}.yaml ${{ inputs.build-type == 'dev' && '--snapshot' || '' }} --clean ${{ inputs.dry-run && '--skip=publish' || '' }}
9898
env:
99-
GITHUB_TOKEN: ${{ secrets.BOT_GHCR_PAT }}
99+
GITHUB_TOKEN: ${{ github.token }}
100100
DRY_RUN: ${{ inputs.dry-run }}
101101

102102
- name: Upload binary SBOMs # Upload SBOMs for prod builds.

0 commit comments

Comments
 (0)