Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2022 Chainguard, Inc.
# SPDX-License-Identifier: Apache-2.0

name: 'Setup chainctl'
name: "Setup chainctl"
description: |
This action sets up the Chainguard chainctl CLI and authenticates
it against the target environment.
Expand Down Expand Up @@ -56,15 +56,14 @@ inputs:
The location of the chainctl config file to use. These values
override the default configuration values in the binary.
required: false
default: ''
default: ""

retry-all-errors:
description: |
Whether to retry on all errors.
required: false
default: false


runs:
using: "composite"

Expand Down Expand Up @@ -131,7 +130,7 @@ runs:
exit 1
fi
if [ "${{ env.EXPORT_AUTH }}" == "true" ]; then
echo HTTP_AUTH="basic:apk.cgr.dev:user:$(shell chainctl auth token --audience apk.cgr.dev)" >> $GITHUB_ENV
echo HTTP_AUTH="basic:apk.cgr.dev:user:$(chainctl auth token --audience apk.cgr.dev)" >> $GITHUB_ENV
fi

- name: Authenticate with Chainguard (DEPRECATED invite-code)
Expand Down Expand Up @@ -161,5 +160,5 @@ runs:
exit 1
fi
if [ "${{ env.EXPORT_AUTH }}" == "true" ]; then
echo HTTP_AUTH="basic:apk.cgr.dev:user:$(shell chainctl auth token --audience apk.cgr.dev)" >> $GITHUB_ENV
echo HTTP_AUTH="basic:apk.cgr.dev:user:$(chainctl auth token --audience apk.cgr.dev)" >> $GITHUB_ENV
fi