Skip to content

chainguard-dev/platform-examples

Repository files navigation

Chainguard Platform Examples

This repo holds a number of example apps demonstrating integrations with Chainguard platform APIs, and various Chainguard Events.

  • GitHub Issue Opener - opens an issue in GitHub when a policy is violated
  • Slack Webhook - sends a message to a Slack channel when a policy is violated
  • Jira Issuer Opener - opens an issue in Jira when a policy is violated
  • GCP Image Copier - copies images to Google Artifact Registry when an image is pushed to cgr.dev
  • ECR Image Copier - copies images to Amazon Elastic Container Registry when an image is pushed to cgr.dev
  • AWS Auth Example - demonstrates configuration of an AWS assumable Chainguard identity, as well as calling the Chainguard API from a Lambda function
  • Tag History Example - demonstrates how to use the Chainguard API to track tag history for images in a registry
  • Image Diff Example - demonstrates how to use the Chainguard API to compare images in a registry

Note

These examples are intended to be used as a reference for building your own Chainguard platform integrations. They can be used directly as-is, but are not intended to be production-ready and may experience breaking changes or be removed entirely. You can reference these examples in your own Terraform configs, but we recommend that you pin a specific commit to avoid unexpected changes. For example:

module "github-issue-opener" {
  source = "github.com/chainguard-dev/platform-examples//github-issue-opener/iac?ref=a1b2c3d4"

  project_id = "..."
  group      = "..."
}