@@ -36,6 +36,13 @@ inputs:
36
36
37
37
Use of invite codes is DEPRECATED, use identity instead.
38
38
required : false
39
+
40
+ verbosity :
41
+ description : |
42
+ Set the logging verbosity for chainctl. A value of 0 disables
43
+ logging output. Valid values are 1-5, increasing in verbosity.
44
+ required : false
45
+ default : 0
39
46
40
47
runs :
41
48
using : " composite"
@@ -57,13 +64,13 @@ runs:
57
64
env :
58
65
CHAINCTL_DEBUG : " true"
59
66
run : |
60
- if chainctl auth login --identity "${{ inputs.identity }}"; then
67
+ if chainctl auth login --identity "${{ inputs.identity }}" -v=${{ inputs.verbosity }} ; then
61
68
echo Logged in as ${{ inputs.identity }}!
62
69
else
63
70
echo Unable to assume the identity ${{ inputs.identity }}.
64
71
exit 1
65
72
fi
66
- if ! chainctl auth configure-docker --identity "${{ inputs.identity }}"; then
73
+ if ! chainctl auth configure-docker --identity "${{ inputs.identity }}" -v=${{ inputs.verbosity }} ; then
67
74
echo Unable to register credential helper as ${{ inputs.identity }}.
68
75
exit 1
69
76
fi
84
91
IDTOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=${AUDIENCE}" | jq -r '.value')
85
92
86
93
# This will start failing once the invite code expires, which is why we have the login guard.
87
- if chainctl auth login --create-group=false --identity-token "${IDTOKEN}" --invite-code="${CHAINGUARD_INVITE_CODE}"; then
94
+ if chainctl auth login --create-group=false --identity-token "${IDTOKEN}" --invite-code="${CHAINGUARD_INVITE_CODE}" -v=${{ inputs.verbosity }} ; then
88
95
echo Logged in!
89
96
else
90
97
echo Failed to log in with invite code
@@ -106,7 +113,7 @@ runs:
106
113
fi
107
114
IDTOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=${AUDIENCE}" | jq -r '.value')
108
115
109
- if chainctl auth login --identity-token "${IDTOKEN}"; then
116
+ if chainctl auth login --identity-token "${IDTOKEN}" -v=${{ inputs.verbosity }} ; then
110
117
echo Logged in!
111
118
else
112
119
echo No invite code is present! Failing since registration will not do any good.
0 commit comments