Add GitHub CI security and release workflows

This commit is contained in:
Eric Wendland 2026-05-28 16:44:58 +02:00
commit 1006f41e45
10 changed files with 396 additions and 0 deletions

44
.github/workflows/codeql.yml vendored Normal file
View file

@ -0,0 +1,44 @@
name: CodeQL
on:
push:
branches: [main]
pull_request:
schedule:
- cron: "43 3 * * 2"
workflow_dispatch:
concurrency:
group: codeql-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: read
contents: read
security-events: write
env:
CARGO_TERM_COLOR: always
jobs:
analyze:
name: Analyze Rust
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: rust
build-mode: manual
- name: Build workspace for CodeQL
run: cargo build --workspace --all-targets
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v3