diff --git a/.github/workflows/maven-release.yaml b/.github/workflows/maven-release.yaml index 2c812ae..ca08388 100644 --- a/.github/workflows/maven-release.yaml +++ b/.github/workflows/maven-release.yaml @@ -2,6 +2,9 @@ name: Publish package to the Maven Central Repository on: release: types: [created] + +permissions: + contents: write jobs: build: @@ -35,7 +38,6 @@ jobs: GPG_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }} GPG_SECRET_KEY: ${{ secrets.GPG_PRIVATE_KEY }} GIT_USER_EMAIL: ${{ secrets.GIT_USER_EMAIL }} - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} GIT_USER_NAME: ${{ vars.GIT_USER_NAME }} steps: @@ -50,10 +52,6 @@ jobs: server-id: sonatype server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD - - - name: Set up Git for authentication - run: | - git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/" - name: Set up GPG for signing run: |