mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-30 04:49:33 +00:00
feat: add security triage gate for issue safety before agent processing (#734)
New issues are triaged by the security team before other workflows can act on them. The triage agent checks for prompt injection, social engineering, spam, and unsafe payloads — marking safe issues with `safe-to-work`, closing malicious ones, or flagging unclear ones for human review. Discovery and refactor workflows now require the `safe-to-work` label in addition to their existing label requirements. Co-authored-by: Sprite <noreply@sprites.dev> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
4d175ae6c7
commit
4924a7d5db
4 changed files with 114 additions and 15 deletions
9
.github/workflows/discovery.yml
vendored
9
.github/workflows/discovery.yml
vendored
|
|
@ -4,7 +4,7 @@ on:
|
|||
schedule:
|
||||
- cron: '*/30 * * * *'
|
||||
issues:
|
||||
types: [opened, reopened]
|
||||
types: [opened, reopened, labeled]
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
|
|
@ -15,11 +15,12 @@ jobs:
|
|||
trigger:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 90
|
||||
# Only trigger on cloud-request or agent-request issues (or schedule/manual)
|
||||
# Only trigger on issues with safe-to-work AND (cloud-request or agent-request) labels, or schedule/manual
|
||||
if: >-
|
||||
github.event_name != 'issues' ||
|
||||
contains(github.event.issue.labels.*.name, 'cloud-request') ||
|
||||
contains(github.event.issue.labels.*.name, 'agent-request')
|
||||
(contains(github.event.issue.labels.*.name, 'safe-to-work') &&
|
||||
(contains(github.event.issue.labels.*.name, 'cloud-request') ||
|
||||
contains(github.event.issue.labels.*.name, 'agent-request')))
|
||||
steps:
|
||||
- name: Trigger and stream discovery cycle
|
||||
env:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue