Skip to content

Commit 4b08f4b

Browse files
authored
fix apk.cgr.dev replacement (#30)
Didn't get all of them in the merge. This is a bug fix because we need to make sure to replace the proper host prefix for the HTTP_AUTH creds.
1 parent be0acd2 commit 4b08f4b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ runs:
130130
fi
131131
echo "::endgroup::"
132132
133-
echo "::group::Authenticating with apk.cgr.dev as ${{ env.IDENTITY }}"
133+
echo "::group::Authenticating with ${{ inputs.apk-host }} as ${{ env.IDENTITY }}"
134134
if ! chainctl auth login --identity "${{ env.IDENTITY }}" --audience ${{ inputs.apk-host }} -v=${{ env.VERBOSITY }}; then
135135
echo "::error Unable to assume the identity ${{ env.IDENTITY }} for ${{ inputs.apk-host }}."
136136
exit 1
@@ -146,7 +146,7 @@ runs:
146146
147147
if [ "${{ env.EXPORT_AUTH }}" == "true" ]; then
148148
echo "::group::Exporting HTTP_AUTH environment variable for ${{ inputs.apk-host }}"
149-
echo HTTP_AUTH="basic:apk.cgr.dev:user:$(chainctl auth token --audience ${{ inputs.apk-host }})" >> $GITHUB_ENV
149+
echo HTTP_AUTH="basic:${{ inputs.apk-host }}:user:$(chainctl auth token --audience ${{ inputs.apk-host }})" >> $GITHUB_ENV
150150
echo "::endgroup::"
151151
fi
152152

0 commit comments

Comments
 (0)