Skip to content

Commit 0dc3a66

Browse files
committed
feat: add ossrh reset token
Signed-off-by: sebastien.heurtematte <[email protected]>
1 parent 97e6012 commit 0dc3a66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ossrh/setup_ossrh.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ register_user_token() {
126126
ossrh_username="$(passw "cbi" "bots/${PROJECT_NAME}/oss.sonatype.org/username")"
127127
ossrh_password="$(passw "cbi" "bots/${PROJECT_NAME}/oss.sonatype.org/password")"
128128

129+
if passw cbi "bots/${PROJECT_NAME}/oss.sonatype.org/gh-token-username" &> /dev/null ; then
130+
_question_action "Reset User Token in secrets manager" "$("${JIRO_ROOT_FOLDER}/build/nexus-pro-token.sh" delete "${nexusProUrl}" "${ossrh_username}" "${ossrh_password}")"
131+
fi
132+
129133
local ossrh_token
130134
ossrh_token="$("${JIRO_ROOT_FOLDER}/build/nexus-pro-token.sh" get_or_create "${nexusProUrl}" "${ossrh_username}" "${ossrh_password}")"
131135
ossrh_token_username="$(jq -r '.nameCode' <<< "${ossrh_token}")"

0 commit comments

Comments
 (0)