This is an automated email from the ASF dual-hosted git repository. msciabarra pushed a commit to branch auth-check in repository https://gitbox.apache.org/repos/asf/openserverless-task.git
commit 601462d55c7f35c92ebebf77c93f5bae6cb3478d Author: Michele Sciabarra <[email protected]> AuthorDate: Tue Aug 5 11:47:45 2025 +0200 auth check --- ide/opsfile.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ide/opsfile.yml b/ide/opsfile.yml index 58e1e2e..7822276 100644 --- a/ide/opsfile.yml +++ b/ide/opsfile.yml @@ -36,6 +36,10 @@ tasks: - test -e ~/.wskprops || die "please run 'ops ide login' first" - test -n "$OPSDEV_HOST" || die "please run 'ops ide login' first" - test "$(ops -wsk property get --namespace | awk '{ print $3 }')" = "$OPSDEV_USERNAME" || die "Repeat the login" + - | + if test -n "$AUTH_CHECK" + then test "$AUTH_CHECK" == "$AUTH" || die "You are logged in a different user than your configured AUTH_CHECK" + fi - | if ! test -d "$OPS_ROOT/ide/deploy/node_modules" then cd $OPS_ROOT/ide/deploy && bun install
