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

Added support for `working-directory`

Open ranger-ross opened this issue 1 year ago • 0 comments

Added support for a working-directory input. See https://github.com/rustsec/audit-check/issues/14

Changes

  • Added working-directory input
    • Defaults to . when not passed. (assume current directory. Maintains backwards comparability)
    • ~~Updated the cargo generate-lockfile command to use --manifest-path flag~~
      • (was removed in https://github.com/rustsec/audit-check/pull/20)
    • Update cargo audit command to use the --file flag
  • (chore) Bumped the actions/checkout in README examples to v4

Testing

Below the the output for a test run on a empty lib with serde added as a dependency with working-directory: bar

jobs:
  cargo-audit:
    runs-on: ubuntu-latest
    permissions: write-all
    steps:
      - uses: actions/checkout@v4
      - uses: ranger-ross/audit-check@working-directory
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          working-directory: bar

image

ranger-ross avatar Apr 20 '24 10:04 ranger-ross