Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize GitHub actions workflow for code quality and security (#28)
* Optimize GitHub Actions workflow for code quality and security - Reuse checkout step from shared-setup job to reduce duplication - Add caching for Rust toolchain to improve build times - These changes should improve the overall efficiency and performance of the workflow without compromising the code quality and security checks This pull request optimizes the existing GitHub Actions workflow for code quality and security checks. The key changes include: 1. Reusing the checkout step from the `shared-setup` job in both the `devskim` and `rust-clippy` jobs to reduce duplication. 2. Adding caching for the Rust toolchain in the `rust-clippy` job to speed up the installation process. These changes should help improve the overall efficiency and performance of the workflow, while maintaining the same level of code quality and security checks. * Optimize GitHub Actions workflow for code quality and security * feat: Update GitHub Actions workflow to support multiple operating systems The GitHub Actions workflow has been updated to support multiple operating systems. This change allows the workflow to run on Ubuntu, macOS, and Windows. The matrix strategy has been added to specify the different operating systems. This optimization improves code quality and security. * Update GitHub Actions DevSkim workflow to use Ubuntu Latest as default operating system, as it is only supported on Linux * Optimize GitHub Actions workflow by checking if clippy-sarif and sarif-fmt are already installed before installing them * Optimize GitHub Actions workflow by checking if clippy-sarif and sarif-fmt are already installed before installing them * Optimize GitHub Actions workflow by checking if clippy-sarif and sarif-fmt are already installed before installing them * Optimize GitHub Actions workflow by installing clippy-sarif and sarif-fmt without checking if they are already installed * Optimize GitHub Actions workflow by forcing installation of clippy-sarif and sarif-fmt * Optimize GitHub Actions workflow by updating codeql-action to v3 * Optimize insert_startup_scripts function for Windows The insert_startup_scripts function in the windows.rs file has been optimized to improve performance and readability. The unnecessary conversion of the path variable to a Path object has been removed, resulting in more efficient code execution. This change enhances the overall functionality of the function and ensures smoother operation on Windows systems. * Refactoring Shared Setup Adding OSV Scanner * chore: improve Windows Update step and add PSWindowsUpdate Module * Optimize GitHub Actions workflow for code quality and security * Optimize GitHub Actions workflow by adding DevSkim linting step * Revert "Optimize GitHub Actions workflow by adding DevSkim linting step" This reverts commit e9ca075. * feat: add fail-on-vuln option to OSV Scanner workflow * feat: enhance security workflow with DevSkim and Clippy analysis * feat: update security vulnerability workflow with explicit permissions and token --------- Co-authored-by: nistee <[email protected]>
- Loading branch information