Skip to content

Don't require GitHub token when working with local files? #5

@o-l-a-v

Description

@o-l-a-v

Would be nice if a GitHub token wasn't neccessary when working with local files.

I'm in a directory that's root of a GitHub repo and I run uvx github-actions-cli on Windows. I expect it to list outdated actions as described default behavior, but it gives:

GitHub connection token not provided.                                                                                                                                         
You might not be able to make the changes to remote repositories.
You can provide it using GITHUB_TOKEN environment variable or --github-token option.

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\wv984\AppData\Local\uv\cache\archive-v0\CatBYJ6AGrRVlsJ3pOBn-\Scripts\github-actions-cli.exe\__main__.py", line 10, in <module>
    sys.exit(cli())
             ~~~^^
  File "C:\Users\wv984\AppData\Local\uv\cache\archive-v0\CatBYJ6AGrRVlsJ3pOBn-\Lib\site-packages\click\core.py", line 1442, in __call__
    return self.main(*args, **kwargs)
           ~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "C:\Users\wv984\AppData\Local\uv\cache\archive-v0\CatBYJ6AGrRVlsJ3pOBn-\Lib\site-packages\click\core.py", line 1363, in main
    rv = self.invoke(ctx)
  File "C:\Users\wv984\AppData\Local\uv\cache\archive-v0\CatBYJ6AGrRVlsJ3pOBn-\Lib\site-packages\click\core.py", line 1808, in invoke
    rv = super().invoke(ctx)
  File "C:\Users\wv984\AppData\Local\uv\cache\archive-v0\CatBYJ6AGrRVlsJ3pOBn-\Lib\site-packages\click\core.py", line 1226, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\wv984\AppData\Local\uv\cache\archive-v0\CatBYJ6AGrRVlsJ3pOBn-\Lib\site-packages\click\core.py", line 794, in invoke
    return callback(*args, **kwargs)
  File "C:\Users\wv984\AppData\Local\uv\cache\archive-v0\CatBYJ6AGrRVlsJ3pOBn-\Lib\site-packages\click\decorators.py", line 34, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "C:\Users\wv984\AppData\Local\uv\cache\archive-v0\CatBYJ6AGrRVlsJ3pOBn-\Lib\site-packages\gha_cli\cli.py", line 237, in cli
    ctx.invoke(update_actions)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "C:\Users\wv984\AppData\Local\uv\cache\archive-v0\CatBYJ6AGrRVlsJ3pOBn-\Lib\site-packages\click\core.py", line 794, in invoke
    return callback(*args, **kwargs)
  File "C:\Users\wv984\AppData\Local\uv\cache\archive-v0\CatBYJ6AGrRVlsJ3pOBn-\Lib\site-packages\click\decorators.py", line 34, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "C:\Users\wv984\AppData\Local\uv\cache\archive-v0\CatBYJ6AGrRVlsJ3pOBn-\Lib\site-packages\gha_cli\cli.py", line 251, in update_actions
    workflow_names = (gh.get_repo_workflow_names(repo))
  File "C:\Users\wv984\AppData\Local\uv\cache\archive-v0\CatBYJ6AGrRVlsJ3pOBn-\Lib\site-packages\gha_cli\cli.py", line 122, in get_repo_workflow_names
    content = self._get_workflow_file_content(repo_name, path)
  File "C:\Users\wv984\AppData\Local\uv\cache\archive-v0\CatBYJ6AGrRVlsJ3pOBn-\Lib\site-packages\gha_cli\cli.py", line 191, in _get_workflow_file_content
    return f.read()
           ~~~~~~^^
  File "C:\Users\wv984\AppData\Roaming\uv\python\cpython-3.13.4-windows-x86_64-none\Lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
           ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 750: character maps to <undefined>

Is it needed for querying GitHub marketplace for new actions versions?

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