Skip to content

Unwanted config created if oidc-provider-name is set empty #281

Description

@neatcoder

Describe the bug

When the action is called with an empty value set in oidc-provider-name, it creates a dummy config.

- name: Setup JFrog
  uses: jfrog/setup-jfrog-cli@ff5cb544114ffc152db9cea1cd3d5978d5074946
  env:
    JF_ENV_1: ${{ steps.check-token.outputs.jf-env-1 }}
    JF_URL: "https://xyz.jfrog.io"
  with:
    oidc-provider-name: ${{ inputs.oidc-provider-name }}

Image

Current behavior

Action creates an unwanted config when supplied with an empty oidc-provider-name input

Reproduction steps

No response

Expected behavior

Action should ignore creating a config if an empty value is provided in oidc-provider-name input

Setup JFrog CLI version

4.5.11

JFrog CLI version

2.77.0

Workflow operating system type and version

ubuntu-latest

JFrog Artifactory version (if relevant)

No response

JFrog Xray version (if relevant)

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions