mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
65 lines
1.5 KiB
YAML
65 lines
1.5 KiB
YAML
name: "Code scanning - Rust"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- 'rc/*'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- 'rc/*'
|
|
paths:
|
|
- '**/*.rs'
|
|
- '**/Cargo.toml'
|
|
- '.github/codeql/codeql-config.yml'
|
|
- '.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@v5
|
|
|
|
- name: Query latest nightly CodeQL bundle
|
|
shell: bash
|
|
id: codeql
|
|
env:
|
|
GITHUB_TOKEN: ${{ github.token }}
|
|
run: |
|
|
REPO=dsp-testing/codeql-cli-nightlies
|
|
TAG=$(
|
|
gh release list -R $REPO -L1 --exclude-drafts --json tagName -q ".[] | .tagName"
|
|
)
|
|
echo "nightly_bundle=https://github.com/$REPO/releases/download/$TAG/codeql-bundle-linux64.tar.zst" \
|
|
| tee -a "$GITHUB_OUTPUT"
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@main
|
|
with:
|
|
tools: ${{ steps.codeql.outputs.nightly_bundle }}
|
|
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
|