geth/.github/workflows/codeql.yml

44 lines
865 B
YAML

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