You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to support directory inputs for check subcommand:
$ ratchet check .github/workflows/
failed to parse .github/workflows/: failed to decode yaml: yaml: input error: read .github/workflows/: is a directory
Detailed design
If given arg is directory, traverse all `.yml | .yaml` files (it's ok to ignore symlinks for now).
If given arg is file, it should work as is.
This gets really complex with authentication, so I would prefer not to support a collection of files. Instead, you can use unix commands like find an xargs to accomplish this:
Yes, I've tried the same method to scan directory but if we want to implement this in the CI, things get complicated since our entry point is ratchet in Docker image. So I want to use the following use-case scenario. Notice that we can not use the way you provided above.
# Example of checking all versions under .github/workflows/ are pinned.
- uses: 'docker://ghcr.io/sethvargo/ratchet:0.2.3'
with:
args: 'check .github/workflows/'
TL;DR
It would be nice to support directory inputs for
check
subcommand:Detailed design
Example output format:
Additional information
No response
The text was updated successfully, but these errors were encountered: