Skip to content

GitHub Actions: shared CI/CD actions for openshell-annotate #61

Closed

Description

@IlanReshet

Problem or use case

Projects that annotate their code with @openshell directives have no ready-made way to run openshell-annotate in CI. Each repo would have to script the install and every check itself.

Proposed solution

Add reusable GitHub Actions to this repo that other repos can pull in with uses: ilanh/openshell-annotate/...@<ref>:

  • setup: install a pinned (or latest) openshell-annotate release on Linux and macOS runners and put it on PATH, with caching.
  • drift: fail the job when the committed policy no longer matches the annotations.
  • lint: report unannotated network, filesystem and exec code as GitHub annotations and a job summary, with a configurable fail threshold.
  • generate: regenerate the policy (and optionally providers) and expose it as an output or artifact, for CD pipelines that build sandbox images.
  • diff-logs: map a sandbox log file to missing or stale directives.

Possibly also a one-step check action or reusable workflow that bundles setup, drift and lint for the common case.

The actions need a self-test workflow in this repo that runs them against examples/, plus README docs with usage examples. A downstream consumer (ilanh/openspell-python-tester) will adopt them afterwards.

Alternatives considered

A Docker-based action. That is slower, and Docker image publishing is a separate milestone.

Activity

  1. added a commit that references this issue on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions