Skip to content
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

Fix GHA invoking cargo audit #237

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Conversation

flavio
Copy link
Contributor

@flavio flavio commented Oct 4, 2024

What type of PR is this?

/kind ci

What this PR does / why we need it:

The security audit GHA is failing

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

We recently got a major version update of the audit-check GHA.

This version invokes:

cargo audit --json --file ./Cargo.lock

Which fails, because we don't have a Cargo.lock file.

This commit makes sure the Cargo.lock is present prior to invoking cargo audit.

Does this PR introduce a user-facing change?

None

@codecov-commenter
Copy link

codecov-commenter commented Oct 4, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.15%. Comparing base (57570dd) to head (5b1cc0b).
Report is 58 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #237      +/-   ##
==========================================
+ Coverage   26.61%   29.15%   +2.54%     
==========================================
  Files          24       26       +2     
  Lines        2788     3159     +371     
  Branches     1516     1671     +155     
==========================================
+ Hits          742      921     +179     
- Misses        948     1021      +73     
- Partials     1098     1217     +119     

We recently got a major version update of the audit-check GHA.

This version invokes:

```console
cargo audit --json --file ./Cargo.lock
````

Which fails, because we don't have a `Cargo.lock` file.

This commit makes sure the `Cargo.lock` is present prior to
invoking `cargo audit`.

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
@flavio flavio merged commit eee9eb3 into youki-dev:main Oct 7, 2024
13 checks passed
@flavio flavio deleted the fix-gha-audit branch October 7, 2024 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants