From ddf4ce5a56abdec14d57ef9096f2eb8e80ffd530 Mon Sep 17 00:00:00 2001 From: Roberto Tyley Date: Tue, 16 Jan 2024 15:09:12 +0000 Subject: [PATCH] Use Sonatype token authentication See https://github.com/guardian/gha-scala-library-release-workflow/pull/23 --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 136265f..87dd887 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,12 +5,12 @@ on: jobs: release: - uses: guardian/gha-scala-library-release-workflow/.github/workflows/reusable-release.yml@give-earlier-warning-when-pgp-key-misconfigured + uses: guardian/gha-scala-library-release-workflow/.github/workflows/reusable-release.yml@use-sonatype-token-rather-than-username-password-auth permissions: { contents: write, pull-requests: write } with: SONATYPE_PROFILE_NAME: 'com.madgag' SONATYPE_CREDENTIAL_HOST: 's01.oss.sonatype.org' - SONATYPE_USERNAME: 'roberto' secrets: - SONATYPE_PASSWORD: ${{ secrets.AUTOMATED_MAVEN_RELEASE_SONATYPE_PASSWORD }} + SONATYPE_TOKEN_USERNAME: ${{ secrets.AUTOMATED_MAVEN_RELEASE_SONATYPE_TOKEN_USERNAME }} + SONATYPE_TOKEN_PASSWORD: ${{ secrets.AUTOMATED_MAVEN_RELEASE_SONATYPE_TOKEN_PASSWORD }} PGP_PRIVATE_KEY: ${{ secrets.AUTOMATED_MAVEN_RELEASE_PGP_SECRET }}