Skip to content

Commit 298034c

Browse files
ci: Enhance workflow permissions and token
Grants `pull-requests: write` permission for expanded workflow capabilities. Switches to the built-in `github.token` for release creation, improving security and simplifying token management.
1 parent d5367a6 commit 298034c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/ci-cd-pipeline.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
permissions:
99
contents: write
1010
packages: write
11+
pull-requests: write
1112

1213
env:
1314
DOCKER_IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/currencyarchiveapi
@@ -292,4 +293,4 @@ jobs:
292293
draft: false
293294
prerelease: false
294295
env:
295-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
296+
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)