From 0c8a38b04d84958ddb33c29bf1608e05aadf941d Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Fri, 27 Sep 2024 23:12:06 -0400 Subject: [PATCH] chore(workflows): use GITHUB_TOKEN for version bump workflow --- .github/workflows/version-bump.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index 5fda87db0..bda4ac2c2 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -5,6 +5,10 @@ on: branches: - master +permissions: + contents: write + pull-requests: write + jobs: bump-version: if: "!startsWith(github.event.head_commit.message, 'bump:')" @@ -14,7 +18,7 @@ jobs: - name: Check out uses: actions/checkout@v4 with: - token: "${{ secrets.GH_PAT_TOKEN }}" + token: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 - uses: actions/setup-go@v5 @@ -28,4 +32,4 @@ jobs: - name: Create bump and changelog uses: commitizen-tools/commitizen-action@master with: - github_token: ${{ secrets.GH_PAT_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }}