Skip to content

Implement EdgeScan Local Dev Command with Apple Native Containers (macOS) #339

@SevenThomas

Description

@SevenThomas

Summary
Implement a new CI/CD integration command in the CellixJS repo to allow developers to run EdgeScan locally using Apple Native Containers on macOS.

Requirements:

  • Add a new script to package.json that runs the official EdgeScan docker image using Apple Native Containers (colima/orbctl or Docker via Apple containers).
  • The script must require ES_API_TOKEN to be present in the user's environment and pass it as --api-token.
  • Hardcode the EdgeScan --asset-id to the DEV asset (will reference local asset in the future).
  • The script should only be for local development and not executed in CI/CD pipelines.
  • Rename the existing docker-based edgescan:run script to edgescan:agent and adjust relevant Copilot instructions to reflect this change.

Example Command:

pnpm run edgescan:dev --api-token $ES_API_TOKEN --asset-id <DEV_ASSET_ID>

Acceptance Criteria:

  • package.json contains a new script for EdgeScan local execution on macOS.
  • Script runs natively with Apple Silicon container solutions.
  • Existing edgescan:run is renamed to edgescan:agent.
  • Copilot instructions referencing edgescan:run are updated to use edgescan:agent.
  • Asset ID uses the DEV asset initially.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions