Skip to content

Assumes incorrect root path #2

Description

@palok

Using this in May 2023 with ubuntu-latest fails with the following error message (redacted actual file names)

Attempting to parse file: /home/runner/work/my-project/my-project/kubernetes/config/secrets/my-secrets.yaml
Traceback (most recent call last):
  File "/main.py", line 25, in <module>
    parser(args.filename, args.secret_name, args.secret_value)
  File "/main.py", line 9, in parser
    with open('/github/workspace/' + filename, 'r') as fd:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/github/workspace//home/runner/work/my-project/my-project/kubernetes/config/secrets/my-secrets.yaml'

There is no /github/workspace/ directory in an ubuntu-latest runner.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions