Skip to content

Commit

Permalink
use env config source only
Browse files Browse the repository at this point in the history
  • Loading branch information
chrnorm committed Apr 4, 2024
1 parent 0ad5ddb commit 520e70a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ inputs:
version:
description: "The CLI version to install"
required: true
default: "1.11.0"
default: "1.12.0"
oidc-client-id:
description: "The OIDC client ID to authenticate with"
required: true
Expand Down Expand Up @@ -54,14 +54,11 @@ runs:
sudo tar -zxvf ./cf_${CLI_VERSION}_linux_x86_64.tar.gz -C /usr/local/bin/
# set up the config file to prevent errors during CLI initialisation
mkdir -p ~/.cf
touch ~/.cf/config
- name: Export environment variables to configure the CLI
shell: bash
run: |
echo "CF_OIDC_CLIENT_ID=${{ inputs.oidc-client-id }}" >> $GITHUB_ENV
echo "CF_OIDC_CLIENT_SECRET=${{ inputs.oidc-client-secret }}" >> $GITHUB_ENV
echo "CF_OIDC_ISSUER=${{ inputs.oidc-issuer }}" >> $GITHUB_ENV
echo "CF_API_URL=${{ inputs.api-url }}" >> $GITHUB_ENV
echo "CF_CONFIG_SOURCES=env" >> $GITHUB_ENV

0 comments on commit 520e70a

Please sign in to comment.