audit-check icon indicating copy to clipboard operation
audit-check copied to clipboard

Make `working-directory` configurable

Open vbrandl opened this issue 2 years ago • 4 comments

I have a polyglot project with a backend in rust under ./backend and a frontend in elm. The project does not have a Cargo.toml or Cargo.lock in the project root. This causes the action to fail.

For other actions, I can overwrite the working-directory to fix this problem:

defaults:
  run:
    working-directory: backend

It would be nice to have an option for the audit action to run in a subdirectory.

vbrandl avatar Jun 15 '23 09:06 vbrandl

Would love to see this!

GiyoMoon avatar Jun 19 '23 12:06 GiyoMoon

Is there a workaround for this?

d0x2f avatar Nov 05 '23 14:11 d0x2f

@d0x2f I created my own reusable workflow where I allow the working-dir to be overwritten :) I don't think its possible with this action at the moment. https://github.com/GiyoMoon/workflows/blob/main/.github/workflows/rust-audit.yml

GiyoMoon avatar Nov 05 '23 15:11 GiyoMoon

Any updates on this? This is essential for monorepos!

DenuxPlays avatar Mar 12 '24 22:03 DenuxPlays

@vbrandl I think this issue was accidentally left open after merging https://github.com/rustsec/audit-check/pull/21 ^^

CommanderStorm avatar Sep 23 '24 16:09 CommanderStorm