Skip to content

Commit 6a8c50a

Browse files
committed
Provide the bearer token to vendir, if provided
1 parent 91e60ac commit 6a8c50a

File tree

1 file changed

+5
-1
lines changed
  • set-vendir-channels-path-to-imgpkg-bundle

1 file changed

+5
-1
lines changed

set-vendir-channels-path-to-imgpkg-bundle/action.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,8 @@ yq -i "
3131
| .directories |= sort_by(.path == \"channels\" | not)
3232
" "$VENDIR_FILE"
3333

34-
vendir sync
34+
if [ -n "$BEARER_TOKEN" ]; then
35+
IMGPKG_TOKEN="$BEARER_TOKEN" vendir sync
36+
else
37+
vendir sync
38+
fi

0 commit comments

Comments
 (0)