From 0e623f3c16eebbd58004a7d87534f9425cd19285 Mon Sep 17 00:00:00 2001 From: macinsight Date: Tue, 28 Nov 2023 14:57:19 +0100 Subject: [PATCH] fix(ci): Update config for changelog-action, add permissions to token Signed-off-by: macinsight --- .github/workflows/changelog.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index b0208a28..13c1235d 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -7,12 +7,15 @@ on: jobs: deploy: runs-on: ubuntu-latest - + permissions: + contents: write + pull-requests: write steps: - name: Checkout Code uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.head_ref }} - name: Get previous tag id: previousTag @@ -25,7 +28,7 @@ jobs: id: changelog uses: requarks/changelog-action@v1 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ github.token }} tag: ${{ github.ref_name }} writeToFile: true excludeTypes: build,other,style