From 06a473abc332333324daf5425c92da0d786f285c Mon Sep 17 00:00:00 2001 From: Mark Patton Date: Mon, 18 Dec 2023 14:18:09 -0500 Subject: [PATCH] Switch combined java release to a secret PAT --- .github/workflows/pass-java-release.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pass-java-release.yml b/.github/workflows/pass-java-release.yml index 833fcbc2..e7e1b224 100644 --- a/.github/workflows/pass-java-release.yml +++ b/.github/workflows/pass-java-release.yml @@ -14,9 +14,6 @@ on: nextversion: description: 'Next dev version' required: true - pat: - description: 'PAT' - required: true jobs: release: @@ -61,8 +58,8 @@ jobs: - name: Checkout pass-core and pass-support using PAT run: | - git clone https://${{ inputs.pat }}@github.com/eclipse-pass/pass-core.git combined/pass-core - git clone https://${{ inputs.pat }}@github.com/eclipse-pass/pass-support.git combined/pass-support + git clone https://${{ secrets.JAVA_RELEASE_PAT }}@github.com/eclipse-pass/pass-core.git combined/pass-core + git clone https://${{ secrets.JAVA_RELEASE_PAT }}@github.com/eclipse-pass/pass-support.git combined/pass-support - name: Set the release version, commit the change, and tag it run: | @@ -101,7 +98,7 @@ jobs: with: registry: ghcr.io username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ secrets.JAVA_RELEASE_PAT }} - name: Push Docker images to GHCR run: | @@ -130,4 +127,4 @@ jobs: gh release create "$RELEASE" --repo=eclipse-pass/pass-core --generate-notes gh release create "$RELEASE" --repo=eclipse-pass/pass-support --generate-notes env: - GITHUB_TOKEN: ${{ inputs.pat }} + GITHUB_TOKEN: ${{ secrets.JAVA_RELEASE_PAT }}