Skip to content

Add support for private repos when fetching files in run.py #38

@JosephDrazen

Description

@JosephDrazen

It does not look like the code in run.py get_list_of_changed_files fetches with the given token.

Wondering if this is a known problem and something that can be fixed?

Getting the following error when fetching files from a private repo:

  Traceback (most recent call last):
    File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
      return _run_code(code, main_globals, None,
    File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
      exec(code, run_globals)
    File "/usr/local/lib/python3.8/dist-packages/cpp_linter/run.py", line 764, in <module>
      main()
    File "/usr/local/lib/python3.8/dist-packages/cpp_linter/run.py", line 738, in main
      exit_early = not filter_out_non_source_files(
    File "/usr/local/lib/python3.8/dist-packages/cpp_linter/run.py", line 2[25](https://github.com/JosephDrazen/myRepo/runs/<run_id>?check_suite_focus=true#step:4:25), in filter_out_non_source_files
      os.path.splitext(file["filename"])[1][1:] in ext_list
  TypeError: string indices must be integers```

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions