Skip to content
Merged
Show file tree
Hide file tree
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
18 changes: 16 additions & 2 deletions .github/workflows/plugin-inspector-bulk-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Plugin Inspector Bulk Scan
on:
schedule:
- cron: "17 7 * * *"
# ClawHub dispatches one targeted, persisted scan per accepted plugin release.
# Plugin Inspector is monitoring only; it never gates publication.
repository_dispatch:
types: [clawhub-plugin-inspector-release-scan]
workflow_dispatch:
inputs:
batch_size:
Expand Down Expand Up @@ -50,14 +54,17 @@ permissions:
contents: read

# Side-effecting scans queue behind the active run instead of overlapping.
# Release scans queue per package so a burst of publishes is not collapsed
# into one pending run; the nightly sweep still covers anything missed.
concurrency:
group: clawhub-plugin-inspector-bulk-scan
group: ${{ github.event_name == 'repository_dispatch' && format('clawhub-plugin-inspector-release-scan-{0}', github.event.client_payload.package_name) || 'clawhub-plugin-inspector-bulk-scan' }}
cancel-in-progress: false

jobs:
scan:
name: Scan published plugins
runs-on: ubuntu-latest
timeout-minutes: ${{ github.event_name == 'repository_dispatch' && 30 || 360 }}
steps:
- name: Checkout
uses: actions/checkout@v7.0.1
Expand Down Expand Up @@ -114,6 +121,13 @@ jobs:
run-id: ${{ inputs.notification_source_run_id }}
github-token: ${{ github.token }}

- name: Require the released package for release scans
if: ${{ github.event_name == 'repository_dispatch' }}
env:
RELEASE_PACKAGE_NAME: ${{ github.event.client_payload.package_name }}
run: |
test -n "$RELEASE_PACKAGE_NAME" || { echo "client_payload.package_name is required" >&2; exit 1; }

- name: Run plugin inspector bulk scan
if: ${{ github.ref == 'refs/heads/main' }}
env:
Expand All @@ -122,7 +136,7 @@ jobs:
PLUGIN_INSPECTOR_BATCH_SIZE: ${{ inputs.batch_size || '25' }}
PLUGIN_INSPECTOR_DRY_RUN: ${{ inputs.dry_run && '1' || '0' }}
PLUGIN_INSPECTOR_DRY_RUN_MAX_BATCHES: ${{ inputs.dry_run_max_batches || '20' }}
PLUGIN_INSPECTOR_PACKAGE_NAMES: ${{ inputs.package_names || '' }}
PLUGIN_INSPECTOR_PACKAGE_NAMES: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.package_name || inputs.package_names || '' }}
PLUGIN_INSPECTOR_OPENCLAW_VERSION: beta
PLUGIN_INSPECTOR_NOTIFY_OWNERS: ${{ github.event_name == 'schedule' && '0' || (inputs.notify_owners && '1' || '0') }}
PLUGIN_INSPECTOR_NOTIFICATION_ONLY: ${{ github.event_name == 'schedule' && '0' || (inputs.notification_only && '1' || '0') }}
Expand Down
10 changes: 4 additions & 6 deletions convex/_generated/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ import type * as lib_moderationEngine from "../lib/moderationEngine.js";
import type * as lib_moderationReasonCodes from "../lib/moderationReasonCodes.js";
import type * as lib_observabilityEvents from "../lib/observabilityEvents.js";
import type * as lib_officialPublishers from "../lib/officialPublishers.js";
import type * as lib_openClawInspectorTarget from "../lib/openClawInspectorTarget.js";
import type * as lib_openClawPublishAuthorization from "../lib/openClawPublishAuthorization.js";
import type * as lib_openaiResponse from "../lib/openaiResponse.js";
import type * as lib_packageArtifacts from "../lib/packageArtifacts.js";
Expand All @@ -138,7 +137,6 @@ import type * as lib_packageFileVerification from "../lib/packageFileVerificatio
import type * as lib_packageIcons from "../lib/packageIcons.js";
import type * as lib_packageInspectorFinding from "../lib/packageInspectorFinding.js";
import type * as lib_packageInspectorOutcome from "../lib/packageInspectorOutcome.js";
import type * as lib_packageInspectorVersion from "../lib/packageInspectorVersion.js";
import type * as lib_packagePageCursor from "../lib/packagePageCursor.js";
import type * as lib_packagePublishRecovery from "../lib/packagePublishRecovery.js";
import type * as lib_packageReadProjection from "../lib/packageReadProjection.js";
Expand All @@ -161,6 +159,7 @@ import type * as lib_pluginCategoryClassificationContract from "../lib/pluginCat
import type * as lib_pluginCategoryReview from "../lib/pluginCategoryReview.js";
import type * as lib_pluginDiscovery from "../lib/pluginDiscovery.js";
import type * as lib_pluginDiscoveryQueries from "../lib/pluginDiscoveryQueries.js";
import type * as lib_pluginInspectorReleaseScan from "../lib/pluginInspectorReleaseScan.js";
import type * as lib_prepublicationReports from "../lib/prepublicationReports.js";
import type * as lib_public from "../lib/public.js";
import type * as lib_publicBrowse from "../lib/publicBrowse.js";
Expand Down Expand Up @@ -256,14 +255,14 @@ import type * as mcpInspectionNode from "../mcpInspectionNode.js";
import type * as migrations from "../migrations.js";
import type * as packageClawpackNode from "../packageClawpackNode.js";
import type * as packageInspectorHttp from "../packageInspectorHttp.js";
import type * as packageInspectorNode from "../packageInspectorNode.js";
import type * as packageLeaderboards from "../packageLeaderboards.js";
import type * as packagePublishRecovery from "../packagePublishRecovery.js";
import type * as packagePublishTokens from "../packagePublishTokens.js";
import type * as packageSdkUsage from "../packageSdkUsage.js";
import type * as packageSdkUsageHttp from "../packageSdkUsageHttp.js";
import type * as packages from "../packages.js";
import type * as pluginCategoryRefresh from "../pluginCategoryRefresh.js";
import type * as pluginInspectorDispatch from "../pluginInspectorDispatch.js";
import type * as pluginSearchObservations from "../pluginSearchObservations.js";
import type * as prepublicationObservability from "../prepublicationObservability.js";
import type * as prepublicationReports from "../prepublicationReports.js";
Expand Down Expand Up @@ -453,7 +452,6 @@ declare const fullApi: ApiFromModules<{
"lib/moderationReasonCodes": typeof lib_moderationReasonCodes;
"lib/observabilityEvents": typeof lib_observabilityEvents;
"lib/officialPublishers": typeof lib_officialPublishers;
"lib/openClawInspectorTarget": typeof lib_openClawInspectorTarget;
"lib/openClawPublishAuthorization": typeof lib_openClawPublishAuthorization;
"lib/openaiResponse": typeof lib_openaiResponse;
"lib/packageArtifacts": typeof lib_packageArtifacts;
Expand All @@ -463,7 +461,6 @@ declare const fullApi: ApiFromModules<{
"lib/packageIcons": typeof lib_packageIcons;
"lib/packageInspectorFinding": typeof lib_packageInspectorFinding;
"lib/packageInspectorOutcome": typeof lib_packageInspectorOutcome;
"lib/packageInspectorVersion": typeof lib_packageInspectorVersion;
"lib/packagePageCursor": typeof lib_packagePageCursor;
"lib/packagePublishRecovery": typeof lib_packagePublishRecovery;
"lib/packageReadProjection": typeof lib_packageReadProjection;
Expand All @@ -486,6 +483,7 @@ declare const fullApi: ApiFromModules<{
"lib/pluginCategoryReview": typeof lib_pluginCategoryReview;
"lib/pluginDiscovery": typeof lib_pluginDiscovery;
"lib/pluginDiscoveryQueries": typeof lib_pluginDiscoveryQueries;
"lib/pluginInspectorReleaseScan": typeof lib_pluginInspectorReleaseScan;
"lib/prepublicationReports": typeof lib_prepublicationReports;
"lib/public": typeof lib_public;
"lib/publicBrowse": typeof lib_publicBrowse;
Expand Down Expand Up @@ -581,14 +579,14 @@ declare const fullApi: ApiFromModules<{
migrations: typeof migrations;
packageClawpackNode: typeof packageClawpackNode;
packageInspectorHttp: typeof packageInspectorHttp;
packageInspectorNode: typeof packageInspectorNode;
packageLeaderboards: typeof packageLeaderboards;
packagePublishRecovery: typeof packagePublishRecovery;
packagePublishTokens: typeof packagePublishTokens;
packageSdkUsage: typeof packageSdkUsage;
packageSdkUsageHttp: typeof packageSdkUsageHttp;
packages: typeof packages;
pluginCategoryRefresh: typeof pluginCategoryRefresh;
pluginInspectorDispatch: typeof pluginInspectorDispatch;
pluginSearchObservations: typeof pluginSearchObservations;
prepublicationObservability: typeof prepublicationObservability;
prepublicationReports: typeof prepublicationReports;
Expand Down
184 changes: 0 additions & 184 deletions convex/lib/openClawInspectorTarget.test.ts

This file was deleted.

Loading
Loading