Files
molecule-core/.gitea/workflows/pr-diff-guard.yml
T
core-devops ee9cf8a1cc
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 5s
Block integration-tester contamination artifacts / Block staging-trigger / invalid manifest contamination (pull_request) Successful in 5s
CI / Python Lint & Test (pull_request) Successful in 8s
E2E Staging SaaS (full lifecycle) / E2E Staging SaaS (pull_request) Has been skipped
E2E Peer Visibility (literal MCP list_peers) / detect-changes (pull_request) Successful in 5s
E2E Staging SaaS (full lifecycle) / E2E Staging Platform Boot (pull_request) Has been skipped
E2E Staging SaaS (full lifecycle) / E2E Staging Concierge user_tasks (pull_request) Has been skipped
E2E Staging SaaS (full lifecycle) / E2E Staging Workspace Requests (core#2606) (pull_request) Has been skipped
sop-checklist / all-items-acked (pull_request) ack advisory until agent-team — would be failure: acked: 0/10 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +7 — body
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request_target) Successful in 4s
ci-required-drift / drift (pull_request) Successful in 22s
E2E Staging SaaS (full lifecycle) / E2E Staging Concierge Platform Agent (pull_request) Has been skipped
E2E Staging SaaS (full lifecycle) / E2E Staging Plugin Install Lifecycle (pull_request) Has been skipped
E2E Staging SaaS (full lifecycle) / pr-validate (pull_request) Successful in 18s
E2E Staging SaaS (full lifecycle) / E2E Staging Concierge (compile+skip) (pull_request) Successful in 22s
E2E Staging SaaS (full lifecycle) / E2E Staging Concierge Creates Workspace (pull_request) Successful in 22s
E2E API Smoke Test / detect-changes (pull_request) Successful in 32s
Concierge Creates Workspace Hermetic / Concierge Creates Workspace Hermetic (pull_request) Successful in 35s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 13s
E2E Chat / detect-changes (pull_request) Successful in 36s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 9s
lint-bp-context-emit-match / lint-bp-context-emit-match (pull_request) Successful in 22s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 14s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 13s
Lint forbidden hand-written mcp__ tool-id literals / Scan for hand-written mcp__ tool-id literals (pull_request) Successful in 13s
CI / Detect changes (pull_request) Successful in 52s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 49s
lint-no-coe-on-required / lint-no-coe-on-required (pull_request) Successful in 16s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Successful in 25s
lint-phantom-gate / lint-phantom-gate (pull_request) Successful in 17s
lint-required-workflows-docker-host-pinned / Lint docker-host pin on docker-touching workflows (pull_request) Successful in 11s
Lint publish-runner timeout-minutes / Lint publish-runner timeout-minutes (pull_request) Successful in 15s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 16s
Lint schedule budget / Zero-cron ratchet (pull_request) Successful in 20s
lint-setup-go-cache / lint-setup-go-cache (pull_request) Successful in 21s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 15s
lint-staging-tenant-cd-gate-chain / lint-staging-tenant-cd-gate-chain (pull_request) Successful in 24s
sop-checklist / review-refire (pull_request_target) Successful in 3s
lint-env-coupling-dismissal / lint-env-coupling-dismissal (pull_request) Successful in 55s
gate-check-v3 / gate-check (pull_request_target) Successful in 13s
lint-required-context-exists-in-bp / lint-required-context-exists-in-bp (pull_request) Successful in 39s
E2E Staging SaaS (full lifecycle) / Prune stale e2e DNS records (pull_request) Successful in 6s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Successful in 47s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 37s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 3s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 12s
qa-review / approved (pull_request_target) Approved via pull_request_review trigger
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 3s
qa-review / approved (pull_request_review) Successful in 9s
CI / Platform (Go) (pull_request) Successful in 3s
E2E Chat / E2E Chat (pull_request) Successful in 4s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 2s
CI / Canvas (Next.js) (pull_request) Successful in 3s
reserved-path-review / reserved-path-review (pull_request_target) Approved via pull_request_review trigger
security-review / approved (pull_request_target) Approved via pull_request_review trigger
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 4s
reserved-path-review / reserved-path-review (pull_request_review) Successful in 15s
security-review / approved (pull_request_review) Successful in 16s
CI / Canvas Deploy Status (pull_request) Successful in 1s
Ops Scripts Tests / Ops scripts (unittest) (pull_request) Successful in 34s
template-delivery-e2e / detect-changes (pull_request) Successful in 42s
template-delivery-e2e / Template-asset delivery (fresh seo-agent — config+prompts via asset channel, seo-all via plugin reconcile) (pull_request) Successful in 2s
CI / all-required (pull_request) Successful in 5s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (stub) (pull_request) Successful in 52s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (real image + MiniMax LLM, advisory) (pull_request) Successful in 27s
gitea-merge-queue / queue (pull_request_review) Successful in 1m23s
audit-force-merge / audit (pull_request_target) Successful in 6s
Merge branch 'main' into fix/diff-guard-authorized-actor-20260711
2026-07-11 16:39:42 +00:00

54 lines
2.0 KiB
YAML

name: PR Diff Guard
# core#2875: block stale PR branches that have drifted into massive,
# destructive diffs against current main (e.g., PR #1100: 481 files,
# ~55k deletions). Runs on every PR and fails when configured size or
# protected-path deletion thresholds are exceeded.
concurrency:
# Auto-cancel a superseded run: a newer commit/event supersedes the old
# one instead of leaving it queued forever (root fix for waiting-run pileup).
# PR events group by PR number; push events group by ref.
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
# The override path needs trusted API credentials to verify who applied the
# label. Run base-branch code only; never execute the PR's version of the
# guard while the workflow token is in scope.
pull_request_target:
branches: [main, staging]
types: [opened, synchronize, reopened, labeled, unlabeled]
permissions:
contents: read
issues: read
pull-requests: read
jobs:
# bp-required: yes
# New gate; wiring into branch protection will follow once it has
# green history and the thresholds are calibrated.
diff-guard:
name: PR diff guard
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.event.pull_request.base.sha }}
# Full history is required to compute the merge-base against origin/main.
fetch-depth: 0
- name: Fetch PR head without checking it out
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
run: git fetch --no-tags origin "refs/pull/${PR_NUMBER}/head"
- name: Run PR diff guard
env:
PR_BASE_REF: ${{ github.base_ref }}
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
GITEA_SERVER_URL: ${{ github.server_url }}
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 .gitea/scripts/pr-diff-guard.py