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:
asepharyana
2026-07-22 07:02:25 +07:00
parent 0ba5da78f9
commit a6b822bbfe
+11 -3
View File
@@ -13,8 +13,16 @@ jobs:
permissions:
security-events: write
steps:
- uses: actions/checkout@v6
- uses: github/codeql-action/init@v3
- uses: actions/checkout@v7
with:
fetch-depth: 2
- uses: github/codeql-action/init@v4
with:
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