You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openserverless.apache.org by ms...@apache.org on 2025/08/05 10:03:12 UTC

(openserverless-task) branch auth-check updated (601462d -> 7b36d8e)

This is an automated email from the ASF dual-hosted git repository.

msciabarra pushed a change to branch auth-check
in repository https://gitbox.apache.org/repos/asf/openserverless-task.git


 discard 601462d  auth check
     new 7b36d8e  auth-check

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (601462d)
            \
             N -- N -- N   refs/heads/auth-check (7b36d8e)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:


(openserverless-task) 01/01: auth-check

Posted by ms...@apache.org.
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 7b36d8e474a4a3089076965ff7069f29333089e3
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Tue Aug 5 12:02:36 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