Specify directory to run audit on
See original GitHub issueDo the checklist before filing an issue:
- Is this related to the
actions-rs
Actions? If you think it’s a problem related to Github Actions in general, use GitHub Community forum instead: https://github.community - You’ve read the Contributing section about feature requests: https://github.com/actions-rs/.github/blob/master/CONTRIBUTING.md#feature-requests
- Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
Motivation
My rust/cargo project isn’t at the top level of my repo, so my audit check always fails because it can’t find my Cargo.toml/Cargo.lock file and it doesn’t take a manifest-path
like other cargo commands do.
Describe your idea, motivation, and how Rust community could benefit from this feature.
Workflow example
It would be awesome if the action would read working-directory
or take a manifest-path
arg
jobs:
security_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/audit-check@v1
with:
# consume working-directory
working-directory: api
# or read args
args: --manifest-path api/Cargo.lock
token: ${{ secrets.GITHUB_TOKEN }}
Additional context
I’ve tried a couple work arounds but couldn’t get any of them working, I hope this isn’t an invasive/difficult addition.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:16
- Comments:5
Top Results From Across the Web
Apply a basic audit policy on a file or folder (Windows 10)
Select and hold (or right-click) the file or folder that you want to audit, select Properties, and then select the Security tab. ·...
Read more >How to enable file and folder access auditing in Windows Server
Navigate Windows Explorer to the file you want to monitor. · Right-click on the target folder/file, and select Properties. · Security → Advanced....
Read more >Enable File and Folder Access Auditing on Windows Server ...
Select the folder that you want to audit. · Right-click and click “Properties” to access its properties. · Go to “Security” tab, and...
Read more >How to set up file audit on Windows server? - Plesk Support
- Type in gpupdate /force and hit Enter. Set up auditing on required files and folders for needed event types: - Open Windows...
Read more >Enabling Directory Server Audit Logging from the Command ...
There are two methods provided for enabling Audit logging. You can either use the Web Administration tool or use the command line method....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Related to https://github.com/actions-rs/cargo/issues/86
The best would be if it takes into account the current working directory:
See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#defaultsrun
I’m also interested in this but have found a temporary solution. Just replace {CARGO_SUBDIR} with your cargo project directory in your repo and {DIRS_TO_REMOVE} with all the non-cargo directories in the top-level of your repo: