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