Skip to content

Pass the token to sticky-pull-request-comment #118

@ItsDrike

Description

@ItsDrike

Currently, when I specify the token for this action, it is only used for pushing to the repo, however, I would also like to use this token to make the comment with (e.g. to pass it over to marocchino/sticky-pull-request-comment action too).

I have a custom github app and I prefer it to comment on my PRs, instead of it showing up as a comment from the github-actions bot. It also allows me to restrict GITHUB_TOKEN permissions in the workflow and only grant this app permissions to comment on PRs / push to the repo.

I'm not sure if you'd consider this a breaking change for users that don't expect the token they provided to also be used to make the sticky comment, if you would, then perhaps instead add another input for the action, e.g. commentToken to be used for this purpose.


The only way around this currently is to disable the sticky comment and handle sending it manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions