cloudformation-guard icon indicating copy to clipboard operation
cloudformation-guard copied to clipboard

Find files recursively when using the github action

Open benbridts opened this issue 6 months ago • 1 comments

I had the issue that the github action would not recurse into the given data directory.

This PR solves that, and applies the same fix to the rules directory.

Notes:

  • Feel free to rewrite this / recreate this, the changes are trivial
  • Actual changes in guard/ts-lib/index.ts and action/package.json. Other changes are from running npm run build:typescript and npm run package.
  • The support of .path seems tricky, it compiles and works for me, but is also maybe marked ad deprecated in nodejs 22 (https://nodejs.org/api/fs.html#class-fsdirent), using parentPath failed for me (and I don't know enough js/ts to debug)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

benbridts avatar Aug 12 '24 16:08 benbridts