Skip to content

Mismatch between the input parameter github_token and the TypeScript code looking for token #26

@maxdanilov

Description

@maxdanilov

With the new TypeScript version of the action, action.yml defines github_token as the input parameter (https://github.com/github/update-project-action/blob/main/action.yml#L24), while the code is reading from the token input instead (https://github.com/github/update-project-action/blob/main/src/update-project.ts#L293).

This leads to the action not working at all.

If passing the input parameter as github_token, the runtime error is the following (the token is read from token, which is empty):

Input required and not supplied: token

If instead, one passes a token parameter to it, GHA complains of an unknown inout (since it's not a part of action.yml):

Unexpected input(s) 'token', valid inputs are ['organization', 'project_number', 'operation', 'content_id', 'field', 'value', 'github_token']


I'd like to propose a simple fix to read the value from the correct input parameter:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions