Skip to content

Rust: add codeql analysis workflow #1

Rust: add codeql analysis workflow

Rust: add codeql analysis workflow #1

Workflow file for this run

name: "Code scanning - C++"

Check failure on line 1 in .github/workflows/rust-analysis.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/rust-analysis.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: analyze
on:
push:
branches:
- main
- 'rc/*'
pull_request:
branches:
- main
- 'rc/*'
paths:
- '**/*.rs'
- '**/Cargo.toml'
- '.github/codeql/codeql-config.yml'
- '.github/actions/fetch-codeql/**'
- '.github/workflows/rust-analysis.yml'
schedule:
- cron: '0 9 * * 1'
env:
CODEQL_ENABLE_EXPERIMENTAL_FEATURES: "true"
jobs:
analyze:
strategy:
matrix:
language: [ 'rust' ]
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
pull-requests: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Fetch latest nightly CodeQL
uses: ./ql/.github/actions/fetch-codeql
- name: Initialize CodeQL
uses: github/codeql-action/init@main
with:
tools: ${{ env.CODEQL_FETCHED_CODEQL_PATH }}
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
- name: Autobuild
uses: github/codeql-action/autobuild@main
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@main