rustsec / audit-check

🛡️ GitHub Action for security audits
MIT License
49 stars 8 forks source link

Make `working-directory` configurable #14

Closed vbrandl closed 2 months ago

vbrandl commented 1 year ago

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.

GiyoMoon commented 1 year ago

Would love to see this!

d0x2f commented 1 year ago

Is there a workaround for this?

GiyoMoon commented 1 year ago

@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

DenuxPlays commented 8 months ago

Any updates on this? This is essential for monorepos!

CommanderStorm commented 2 months ago

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