fix: add manual cargo build step for CodeQL Rust analysis
The security.yml CodeQL job fails because: 1. The Rust project is in apps/scraper/, not at the repo root 2. CodeQL v4's autobuilder can't find Cargo.toml at the root 3. CodeQL v4 requires the Rust code to be built for analysis Also removes javascript-typescript language since this repo has no JS/TS code.
This commit is contained in:
@@ -13,8 +13,16 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
security-events: write
|
security-events: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v7
|
||||||
- uses: github/codeql-action/init@v3
|
with:
|
||||||
|
fetch-depth: 2
|
||||||
|
|
||||||
|
- uses: github/codeql-action/init@v4
|
||||||
with:
|
with:
|
||||||
languages: rust
|
languages: rust
|
||||||
- uses: github/codeql-action/analyze@v3
|
|
||||||
|
- name: Build Rust project for CodeQL analysis
|
||||||
|
run: cargo build
|
||||||
|
working-directory: apps/scraper
|
||||||
|
|
||||||
|
- uses: github/codeql-action/analyze@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user