File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,22 +115,33 @@ runs:
115115 CHAINCTL_CONFIG : ${{ inputs.config-path }}
116116 EXPORT_AUTH : ${{ inputs.env-auth }}
117117 run : |
118+ echo "::group::Authenticating with Chainguard as ${{ env.IDENTITY }}"
118119 if chainctl auth login --identity "${{ env.IDENTITY }}" -v=${{ env.VERBOSITY }}; then
119120 echo Logged in as ${{ env.IDENTITY }}!
120121 else
121- echo Unable to assume the identity ${{ env.IDENTITY }}.
122+ echo "::error Unable to assume the identity ${{ env.IDENTITY }}."
122123 exit 1
123124 fi
125+ echo "::endgroup::"
126+
127+ echo "::group::Authenticating with apk.cgr.dev as ${{ env.IDENTITY }}"
124128 if ! chainctl auth login --identity "${{ env.IDENTITY }}" --audience apk.cgr.dev -v=${{ env.VERBOSITY }}; then
125- echo Unable to assume the identity ${{ env.IDENTITY }} for apk.cgr.dev.
129+ echo "::error Unable to assume the identity ${{ env.IDENTITY }} for apk.cgr.dev."
126130 exit 1
127131 fi
132+ echo "::endgroup::"
133+
134+ echo "::group::Registering docker credential helper"
128135 if ! chainctl auth configure-docker --identity "${{ env.IDENTITY }}" -v=${{ env.VERBOSITY }}; then
129- echo Unable to register credential helper as ${{ env.IDENTITY }}.
136+ echo "::error Unable to register credential helper as ${{ env.IDENTITY }}."
130137 exit 1
131138 fi
139+ echo "::endgroup::"
140+
132141 if [ "${{ env.EXPORT_AUTH }}" == "true" ]; then
142+ echo "::group::Exporting HTTP_AUTH environment variable for apk.cgr.dev"
133143 echo HTTP_AUTH="basic:apk.cgr.dev:user:$(chainctl auth token --audience apk.cgr.dev)" >> $GITHUB_ENV
144+ echo "::endgroup::"
134145 fi
135146
136147 - name : Authenticate with Chainguard (DEPRECATED invite-code)
You can’t perform that action at this time.
0 commit comments