From 6def6a7d720db60b4f6cb18685afc57da1a83616 Mon Sep 17 00:00:00 2001 From: Konstantin Korotkov Date: Tue, 20 Oct 2026 17:47:38 +0200 Subject: [PATCH] Release with GITHUB_TOKEN instead of SSH deploy key --- .github/workflows/netlicensing-client-release.yml | 7 ++++--- pom.xml | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/netlicensing-client-release.yml b/.github/workflows/netlicensing-client-release.yml index d5d88be..ef62eb5 100644 --- a/.github/workflows/netlicensing-client-release.yml +++ b/.github/workflows/netlicensing-client-release.yml @@ -13,6 +13,8 @@ jobs: release: name: Release ${{ github.event.inputs.release-version }} / Java ${{ matrix.java-version }} runs-on: self-hosted + permissions: + contents: write env: RELEASE_WORK_DIR: checkout-for-release container: maven:3-eclipse-temurin-17 @@ -31,15 +33,14 @@ jobs: # Specific to maven:3-eclipse-temurin-17 image run: | apt-get update - apt-get install -y ssh gnupg2 + apt-get install -y gnupg2 - name: Checkout the sources uses: actions/checkout@v7 with: path: ${{ env.RELEASE_WORK_DIR }} - ssh-key: '${{ secrets.REPO_SSH_KEY }}' - # Relies on actions/checkout with 'ssh-key' parameter. + # Relies on the GITHUB_TOKEN credentials persisted by actions/checkout. - name: Prepare git config run: | cd $RELEASE_WORK_DIR diff --git a/pom.xml b/pom.xml index ff7ad7d..eedfc27 100644 --- a/pom.xml +++ b/pom.xml @@ -27,8 +27,8 @@ https://github.com/Labs64/NetLicensingClient-java - scm:git:git@github.com:Labs64/NetLicensingClient-java.git - scm:git:git@github.com:Labs64/NetLicensingClient-java.git + scm:git:https://github.com/Labs64/NetLicensingClient-java.git + scm:git:https://github.com/Labs64/NetLicensingClient-java.git HEAD