Giter VIP home page Giter VIP logo

enforce-events's Introduction

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
  • GCR Image Copier - copies images to Google Container 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      = "..."
}

enforce-events's People

Contributors

cpanato avatar dependabot[bot] avatar github-actions[bot] avatar imjasonh avatar jamonation avatar jdolitsky avatar k4leung4 avatar mattmoor avatar n3wscott avatar nsmith5 avatar pdeslaur avatar strongjz avatar tcnghia avatar tstromberg avatar vaikas avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

enforce-events's Issues

terraform apply error with module.issue-opener.ko_build.image

I'm running into an issue with terraform apply using the Github example:

│ Error: doBuild: one of KO_DOCKER_REPO env var, or provider `docker_repo` or `repo`, or image resource `repo` must be set
│
│   with module.issue-opener.ko_build.image,
│   on .terraform/modules/issue-opener/github-issue-opener/iac/main.tf line 44, in resource "ko_build" "image":
│   44: resource "ko_build" "image" {

I suspect the resource just needs an extra field added pointing at the provider-specific repository.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.