-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
ENOENT: no such file or directory, open '/home/runner/work/project/project/output/undefined'
If you pass a domain with protocol e.g https://example.com (instead of example.com) the report file cannot be found.
Example (non working):
- uses: mbogh/test-ssl-action@v2
with:
host: https://example.comExample (working):
- uses: mbogh/test-ssl-action@v2
with:
host: example.comThe cause is, that the report is generated without the protocol eg. example.com...json
The issue is most likely on this line (a potential fix, either validate host or change startsWith to contains):
Line 30 in 1aa048c
| let reportFile = fs.readdirSync(path).filter(fn => fn.startsWith(host) && fn.endsWith('.json'))[0]; |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels