Skip to content

Commit 06a473a

Browse files
committed
Switch combined java release to a secret PAT
1 parent 592b502 commit 06a473a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/pass-java-release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ on:
1414
nextversion:
1515
description: 'Next dev version'
1616
required: true
17-
pat:
18-
description: 'PAT'
19-
required: true
2017

2118
jobs:
2219
release:
@@ -61,8 +58,8 @@ jobs:
6158
6259
- name: Checkout pass-core and pass-support using PAT
6360
run: |
64-
git clone https://${{ inputs.pat }}@github.com/eclipse-pass/pass-core.git combined/pass-core
65-
git clone https://${{ inputs.pat }}@github.com/eclipse-pass/pass-support.git combined/pass-support
61+
git clone https://${{ secrets.JAVA_RELEASE_PAT }}@github.com/eclipse-pass/pass-core.git combined/pass-core
62+
git clone https://${{ secrets.JAVA_RELEASE_PAT }}@github.com/eclipse-pass/pass-support.git combined/pass-support
6663
6764
- name: Set the release version, commit the change, and tag it
6865
run: |
@@ -101,7 +98,7 @@ jobs:
10198
with:
10299
registry: ghcr.io
103100
username: ${{ github.actor }}
104-
password: ${{ secrets.GITHUB_TOKEN }}
101+
password: ${{ secrets.JAVA_RELEASE_PAT }}
105102

106103
- name: Push Docker images to GHCR
107104
run: |
@@ -130,4 +127,4 @@ jobs:
130127
gh release create "$RELEASE" --repo=eclipse-pass/pass-core --generate-notes
131128
gh release create "$RELEASE" --repo=eclipse-pass/pass-support --generate-notes
132129
env:
133-
GITHUB_TOKEN: ${{ inputs.pat }}
130+
GITHUB_TOKEN: ${{ secrets.JAVA_RELEASE_PAT }}

0 commit comments

Comments
 (0)