Skip to content

Implement EdgeScan local integration script for macOS developers in package.json #154

@nnoce14

Description

@nnoce14

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

Requirements:

  • Add a new script to package.json that runs the EdgeScan official docker image using Apple Native Containers (colima/orbctl or docker via MacOS containers).
  • The command must expect ES_API_TOKEN to be present in the user's environment and pass it as --api-token.
  • The script should hardcode the EdgeScan --asset-id to the DEV asset for now (this will later reference the local asset when available).
  • Provide clear developer documentation on how to use and prerequisites (Apple Silicon, Docker Desktop, or Apple Native Containers installed).
  • The CI script should not run in CI/CD pipelines yet, only for local development.
  • 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 the new script for EdgeScan local execution on macOS
  • Script works natively on Apple Silicon containers
  • Documentation updated for developer onboarding
  • Asset ID is DEV asset for initial integration and replaced with local asset once available
  • Existing edgescan:run script renamed to edgescan:agent and Copilot instructions updated accordingly

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions