Files
asepharyana-hub/.github/workflows/security.yml
T
asepharyana a6b822bbfe 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.
2026-07-22 07:02:25 +07:00

29 lines
556 B
YAML

name: Security
on:
pull_request:
branches: [main]
schedule:
- cron: '0 6 * * 1' # Every Monday
jobs:
codeql:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
security-events: write
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 2
- uses: github/codeql-action/init@v4
with:
languages: rust
- name: Build Rust project for CodeQL analysis
run: cargo build
working-directory: apps/scraper
- uses: github/codeql-action/analyze@v4