Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
run: cargo doc --workspace --all-features --no-deps

- name: Install cargo-audit
run: cargo install cargo-audit
run: cargo install cargo-audit --force

- name: Run Security Audit
run: cargo audit
Comment on lines +59 to 62
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @bansikah22 👋🏽

Instead of:

run: cargo install cargo-audit --force

We could use:

- uses: taiki-e/install-action@v2
  with:
    tool: cargo-audit
- run: cargo audit

It’s faster, avoids compiling from source, and prevents reinstall issues that usually require --force. It’s also designed for CI use and handles caching automatically. Let me know what you think!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@onelrian great idea i will update that Thank you

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's what we're here for
you're welcome

6 changes: 6 additions & 0 deletions ci-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ if ! command -v cargo-audit &> /dev/null; then
cargo install cargo-audit
fi

# Ensure cargo-nextest is installed
if ! command -v cargo-nextest &> /dev/null; then
echo "Installing cargo-nextest..."
cargo install cargo-nextest --locked
fi

# Run all CI steps locally
echo "Checking Formatting..."
cargo fmt --all -- --check || (echo "Formatting issues found, please run 'cargo fmt' to auto-fix." && exit 1)
Expand Down
Loading