Skip to content

FileNotFoundError, sarif result file not found when running through docker #7

Description

@elizabethtl

when running argus through docker

sudo docker run argus-argus --mode repo --url https://github.com/<GITHUB-USER>/<GITHUB-REPO>

the following error is encountered

    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.cache/pypoetry/virtualenvs/argus-lKa0R1gD-py3.11/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/root/.cache/pypoetry/virtualenvs/argus-lKa0R1gD-py3.11/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.cache/pypoetry/virtualenvs/argus-lKa0R1gD-py3.11/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/argus.py", line 72, in main
    repo.save_report_to_file()
  File "/root/argus_components/repo.py", line 124, in save_report_to_file
    workflow_report.get_report(RESULTS_FOLDER / f"{self.owner_name}#{self.repo_name}#{wf_name}.sarif")
  File "/root/argus_components/report/workflow_report.py", line 72, in get_report
    with open(output_file, "w") as f:
         ^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/results/<GITHUB-USER>#<GITHUB-REPO>#<ACTION-YAML-FILE>.sarif'

Any guidance on how I can fix this would be greatly appreaciated, thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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