Skip to content

πŸ•΅οΈβ€β™‚οΈ Security Audit #114

πŸ•΅οΈβ€β™‚οΈ Security Audit

πŸ•΅οΈβ€β™‚οΈ Security Audit #114

on:
push:
paths:
- '.github/workflows/security_audit.yml' # Run when this workflow changes
- '**/Cargo.toml' # Run when dependencies change
- '**/Cargo.lock' # Run when dependencies change
pull_request:
branches: [main]
schedule:
- cron: '0 0 * * *' # Run periodically to capture recent developments
workflow_dispatch: # Run when manually triggered
workflow_call: # Run when called by another workflow
name: πŸ•΅οΈβ€β™‚οΈ Security Audit Workflow
jobs:
audit_job:
name: πŸ•΅οΈβ€β™‚οΈ Security Audit Job
strategy:
fail-fast: false
matrix:
platform:
- linux
- windows
- apple
cpu_architecture:
# - i686
- x86_64
# - aarch64
# - riscv64gc
include:
- platform: linux
cicd_runner: ubuntu_latest
- platform: windows
cicd_runner: windows-latest
- platform: apple
cicd_runner: macos-latest
- compilation_target: x86_64-unknown-linux-gnu
cpu_architecture: x86_64
platform: linux
toolchain: gnu
# - compilation_target: x86_64-unknown-linux-musl
# cpu_architecture: x86_64
# platform: linux
# toolchain: musl
- compilation_target: x86_64-pc-windows-msvc
cpu_architecture: x86_64
platform: windows
toolchain: msvc
# - compilation_target: x86_64-pc-windows-gnu
# cpu_architecture: x86_64
# platform: windows
# toolchain: gnu
- compilation_target: x86_64-apple-darwin
cpu_architecture: x86_64
platform: apple
toolchain: darwin
# - compilation_target: aarch64-unknown-linux-gnu
# cpu_architecture: aarch64
# platform: linux
# toolchain: gnu
# - compilation_target: aarch64-unknown-linux-musl
# cpu_architecture: aarch64
# platform: linux
# toolchain: musl
# - compilation_target: aarch64-pc-windows-msvc
# cpu_architecture: aarch64
# platform: windows
# toolchain: msvc
# - compilation_target: aarch64-apple-darwin
# cpu_architecture: aarch64
# platform: apple
# toolchain: darwin
# - compilation_target: riscv64gc-unknown-linux-gnu
# cpu_architecture: riscv64gc
# platform: linux
# toolchain: gnu
permissions:
contents: read
issues: write
runs-on: ${{ matrix.cicd_runner }}
steps:
- name: 🎟 Checkout Git Repository Step
id: repository_checkout_step
uses: actions/checkout@v4
- name: 🐍 Setup Python Step
id: python_setup_step
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: ↕️ Install dependencies
id: dependencies_install_step
run: |
python -m pip install --upgrade pip
pip install requests
- name: πŸ•΅οΈβ€β™‚οΈ Security Audit Step
id: audit_step
uses: actions-rust-lang/audit@v1
- name: πŸ—‚ Setup Cache
id: cache_setup_step
uses: Swatinem/rust-cache@v2