-
Notifications
You must be signed in to change notification settings - Fork 2
Add cargo audit to CI workflow #299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a9d46ae
ci: add Trivy scan to periodic workflow
ZohebShaikh 698f655
wip
ZohebShaikh 7e72cab
add cargo-audit to path check
ZohebShaikh b019225
check ci is working
ZohebShaikh 0516102
token is required
ZohebShaikh 8304c49
remove it from lock file
ZohebShaikh 4858b21
add new line
ZohebShaikh ce2edcd
Merge branch 'main' into add-trivy
ZohebShaikh 5fb291c
update cargo lock
ZohebShaikh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| # Example audit config file | ||
| # | ||
| # It may be located in the user home (`~/.cargo/audit.toml`) or in the project | ||
| # root (`.cargo/audit.toml`). | ||
| # | ||
| # All of the options which can be passed via CLI arguments can also be | ||
| # permanently specified in this file. | ||
|
|
||
| # Crate: rsa | ||
| # Version: 0.9.10 | ||
| # Title: Marvin Attack: potential key recovery through timing sidechannels | ||
| # Date: 2023-11-22 | ||
| # ID: RUSTSEC-2023-0071 | ||
| # URL: https://rustsec.org/advisories/RUSTSEC-2023-0071 | ||
| # Severity: 5.9 (medium) | ||
| # Solution: No fixed upgrade is available! | ||
| # Dependency tree: | ||
| # rsa 0.9.10 | ||
| # └── openidconnect 4.0.1 | ||
| # └── numtracker 0.0.0 | ||
|
|
||
| [advisories] | ||
| ignore = ["RUSTSEC-2023-0071"] # advisory IDs to ignore e.g. ["RUSTSEC-2019-0001", ...] | ||
|
|
||
| informational_warnings = ["unmaintained"] # warn for categories of informational advisories | ||
| severity_threshold = "low" # CVSS severity ("none", "low", "medium", "high", "critical") | ||
|
|
||
| # Advisory Database Configuration | ||
| [database] | ||
| path = "~/.cargo/advisory-db" # Path where advisory git repo will be cloned | ||
| url = "https://github.com/RustSec/advisory-db.git" # URL to git repo | ||
| fetch = true # Perform a `git fetch` before auditing (default: true) | ||
| stale = false # Allow stale advisory DB (i.e. no commits for 90 days, default: false) | ||
|
|
||
| # Output Configuration | ||
| [output] | ||
| deny = ["unmaintained"] # exit on error if unmaintained dependencies are found | ||
| format = "terminal" # "terminal" (human readable report) or "json" | ||
| quiet = false # Only print information on error | ||
|
|
||
|
|
||
| # Target Configuration | ||
| [target] | ||
| arch = ["x86_64"] # Ignore advisories for CPU architectures other than these | ||
| os = ["linux"] # Ignore advisories for operating systems other than these | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| name: Cargo lock check | ||
|
|
||
| on: | ||
| workflow_call: | ||
| push: | ||
| paths: | ||
| - '**/Cargo.toml' | ||
| - '**/Cargo.lock' | ||
|
|
||
| jobs: | ||
| security_audit: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v7 | ||
|
|
||
| - name: Audit Cargo.lock for security advisories | ||
| uses: rustsec/audit-check@v2.0.0 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| name: Periodic | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| # Run weekly to check for new vulnerabilities | ||
| - cron: "0 8 * * WED" | ||
|
|
||
| jobs: | ||
|
|
||
| cargo_audit: | ||
| uses: ./.github/workflows/cargo_audit.yml | ||
| permissions: | ||
| issues: write | ||
| checks: write |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.