xresloader / upload-to-github-release

MIT License
52 stars 10 forks source link

GITHUB_TOKEN environment variable is unnecessary #54

Closed enumag closed 8 months ago

enumag commented 8 months ago

Some other similar tools don't require a token to be explicitly passed. They have the option to do it but it isn't required. The github.token context value is used as default.

See https://docs.github.com/en/actions/learn-github-actions/contexts#github-context

enumag commented 8 months ago

Sure, this one doesn't require it and is written in JS (well TS).

https://github.com/softprops/action-gh-release

On 07-Nov-23 10:16:35, WenTao Ou @.> wrote: Could you please provide a example of plugin which do not require a token to be explicitly passed? I didn't find the javascript API to read github.token from context object. — Reply to this email directly, view it on GitHub [https://github.com/xresloader/upload-to-github-release/issues/54#issuecomment-1798101168], or unsubscribe [https://github.com/notifications/unsubscribe-auth/AAEDWRXFIBOG23K4YEBGALLYDH37HAVCNFSM6AAAAAA7AXQEP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJYGEYDCMJWHA]. You are receiving this because you authored the thread.Message ID: @.>