Skip to content

Release creation fails when token is an empty string #541

Open
@manferlo81

Description

@manferlo81

I am using your action inside a composite action and I noticed it fails if the token if an empty string...

uses: softprops/action-gh-release@v2
with:
  token: ""

... in my case I am accepting an input named token and passing it through to your action, if the input is empty it will pass an empty string to your action causing it to fail. I solved to problem by taking into account the case the input is empty and handling myself. I believe this behavior is not the intended one, if it is, please feel free to close this issue.

I noticed you check for GITHUB_TOKEN before INPUT_TOKEN, is that what you intend?

github_token: env.GITHUB_TOKEN || env.INPUT_TOKEN || "",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions