Skip to content

Commit 2302a56

Browse files
authored
Explicitly auth to apk.cgr.dev (#19)
We have an option for exporting `HTTP_AUTH`, but I'm 90% sure this won't work with assumed identities unless we explicitly `chainctl auth login` using the identity and audience first. Signed-off-by: Matt Moore <mattmoor@chainguard.dev>
1 parent 7d091d8 commit 2302a56

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

action.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ runs:
122122
echo Unable to assume the identity ${{ env.IDENTITY }}.
123123
exit 1
124124
fi
125+
if ! chainctl auth login --identity "${{ env.IDENTITY }}" --audience apk.cgr.dev -v=${{ env.VERBOSITY }}; then
126+
echo Unable to assume the identity ${{ env.IDENTITY }} for apk.cgr.dev.
127+
exit 1
128+
fi
125129
if ! chainctl auth configure-docker --identity "${{ env.IDENTITY }}" -v=${{ env.VERBOSITY }}; then
126130
echo Unable to register credential helper as ${{ env.IDENTITY }}.
127131
exit 1

0 commit comments

Comments
 (0)