Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/agent-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@ name: Security Agent

# Triggers Cursor's Security Cloud Agent via API in two modes:
# 1. PR mode — Dependabot/dep-labeled PR → workflow waits + posts report
# 2. Cron mode — weekly Mondays 06:00 UTC, sandbox creates fix PRs/issues
# 2. Cron mode — weekly audit, sandbox creates fix PRs/issues
# (Cursor sandbox can create new PRs/issues but cannot comment on existing
# PRs, so PR-mode requires the workflow to post the report itself.)
#
# The weekly run is NOT self-scheduled here — that would fire on every managed
# repo at the same instant and trip Cursor's concurrent-agent limit. Instead
# the template's weekly-security-dispatch.yml triggers this via workflow_dispatch,
# staggered and throttled under the limit. (cron-mode still runs on dispatch.)

on:
pull_request:
types: [opened, synchronize, labeled]
schedule:
- cron: "0 6 * * 1"
workflow_dispatch:

jobs:
Expand Down