Skip to content

Commit

Permalink
Switch combined java release to a secret PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
markpatton committed Dec 18, 2023
1 parent 592b502 commit 06a473a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/pass-java-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ on:
nextversion:
description: 'Next dev version'
required: true
pat:
description: 'PAT'
required: true

jobs:
release:
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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 }}

0 comments on commit 06a473a

Please sign in to comment.