Skip to content

CI: bump the github-actions group across 1 directory with 2 updates #5

CI: bump the github-actions group across 1 directory with 2 updates

CI: bump the github-actions group across 1 directory with 2 updates #5

Workflow file for this run

name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '32 5 * * 1'
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze-python:
name: Analyze (Python)
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
# Actions are pinned to a full commit SHA (supply-chain hardening); the
# trailing comment records the human-readable version.
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Initialize CodeQL
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
with:
languages: python
queries: security-and-quality
# Python is interpreted — there is nothing to compile, so no build step.
build-mode: none
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
with:
category: "/language:python"
analyze-rust:
name: Analyze (Rust)
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
# Rust requires compilation for CodeQL analysis.
- uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # stable
with:
toolchain: stable
- name: Initialize CodeQL
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
with:
languages: rust
queries: security-and-quality
# `extension-module` is an optional Cargo feature that must be active for the
# cdylib to compile (it enables the PyInit__processkit FFI entry point).
- name: Build (for CodeQL)
run: cargo build --features extension-module
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
with:
category: "/language:rust"