Skip to content

Commit

Permalink
Add GitHub Actions pipeline for security and memory safety checks.
Browse files Browse the repository at this point in the history
Add GitHub Actions pipeline for security and memory safety checks.
  • Loading branch information
yezzfusl authored Aug 6, 2024
2 parents 8ad421a + e4a8f18 commit 434618a
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/security-and-safety.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Security and Memory Safety

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
security-and-safety:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install Clippy
run: rustup component add clippy

- name: Install Rustfmt
run: rustup component add rustfmt

- name: Install Miri
run: rustup component add miri

- name: Run Clippy (Linter)
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Run Rustfmt (Code Formatting)
run: cargo fmt --all -- --check

- name: Run Miri (Memory Safety Checker)
run: cargo miri run --all-targets

- name: Run Security Audits
run: cargo audit

- name: Install AddressSanitizer
run: rustup component add sanitizer

- name: Run AddressSanitizer
run: cargo build --release --features=asan

0 comments on commit 434618a

Please sign in to comment.