Skip to content

security: gate local analyze spend and harden CI supply chain - #60

Merged
kingabzpro merged 1 commit into
masterfrom
security/analyze-gate-ci-hardening
Nov 14, 2026
Merged

kingabzpro merged 1 commit into
masterfrom
security/analyze-gate-ci-hardening

Conversation

@kingabzpro

Copy link
Copy Markdown
Owner

Summary

  • Queue overlapping /api/analyze requests on one paid pipeline with a bounded semaphore: a loopback tab or process that double-clicks or loops can no longer fire unlimited parallel paid model calls. Queued requests wait up to 60 s, then get a 503 with an explicit "already running" message
  • The keyed /v1/analyze path and batch workers keep their existing per-key rate limits and 4-slot concurrency; nothing changes for authenticated throughput
  • Add CodeQL analysis (push/PR/weekly), Dependabot for pip and GitHub Actions, and pin every workflow action to a commit SHA

Checks

  • pytest: 393 passed, 1 skipped (2 new tests: busy 503 while the gate is held, and overlapping requests serialize with max concurrency 1)
  • Workflow YAML validated with pyyaml; CodeQL and Dependabot validated by the Actions run on this PR

Queue overlapping /api/analyze requests on one paid pipeline with a
bounded semaphore instead of running parallel paid model calls from any
loopback tab or process. The keyed /v1 path and batch workers keep their
existing rate limits and slots.

Add CodeQL analysis, Dependabot updates for pip and GitHub Actions, and
pin every workflow action to a commit SHA.
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@kingabzpro
kingabzpro merged commit be53452 into master Nov 14, 2026
6 checks passed
@kingabzpro
kingabzpro deleted the security/analyze-gate-ci-hardening branch November 14, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants