npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@awesome-cdk/cdk-report-codepipeline-status-to-github

v2.0.2

Published

An AWS CDK construct that, when attached to a CodePipeline, will make sure success or failure of that pipeline is reflected back to GitHub and shown next to the commit.

Readme

Report CodePipeline build status to GitHub commit

CI status npm version

An AWS CDK construct that, when attached to a CodePipeline, will make sure success or failure of that pipeline is reflected back to GitHub and shown next to the commit.

This is largely based on the reference architecture, proposed by AWS, minus the SNS topic, since it's not really needed.

Migrating from v1 (CDK v1) to v2 (CDK v2)

This package was rewritten for AWS CDK v2. If upgrading from an earlier version:

  • Replace all @aws-cdk/* imports with aws-cdk-lib equivalents
  • Add constructs as a dependency (Construct now comes from the constructs package)
  • The public API (CodePipelinePostToGitHub class and its props) is unchanged
- import {StringParameter} from "@aws-cdk/aws-ssm";
+ import {StringParameter} from "aws-cdk-lib/aws-ssm";

The same pattern applies to all other @aws-cdk/* imports (e.g. @aws-cdk/aws-codepipelineaws-cdk-lib/aws-codepipeline).

Requirements

  • AWS CDK v2 (aws-cdk-lib >= 2.100.0)
  • Node.js >= 18

Quick Start

npm i @awesome-cdk/cdk-report-codepipeline-status-to-github
import {CodePipelinePostToGitHub} from "@awesome-cdk/cdk-report-codepipeline-status-to-github";
import {StringParameter} from "aws-cdk-lib/aws-ssm";
import * as codepipeline from "aws-cdk-lib/aws-codepipeline";

// Create your pipeline with its Stages and all other configuration, as you would normally do it
const pipeline = new codepipeline.Pipeline(this, 'Pipeline', {});

// Use the construct from this package, passing a "Systems Manager - Parameter Store" where you've previously stored your GitHub "Personal Access Token"
const githubToken = StringParameter.fromStringParameterName(this, 'GitHubToken', 'GITHUB_TOKEN');
new CodePipelinePostToGitHub(pipeline, 'CodePipelinePostToGitHub', {
    pipeline,
    githubToken,
});

E2E Testing

An end-to-end test script is included that creates a throwaway GitHub repo, deploys the construct to a real AWS account, triggers a pipeline, and verifies the commit status is reported back to GitHub.

Prerequisites:

  • gh CLI authenticated (gh auth login)
  • AWS credentials in the shell (e.g. via aws-vault, aws sso login, or env vars)
  • Node.js >= 18, pnpm installed
  • A classic GitHub PAT with repo scope (fine-grained PATs are not supported by CodePipeline's GitHub source action)

Run:

aws-vault exec <profile> -- ./e2e.sh --github-pat ghp_xxx

What it does:

  1. Creates a throwaway public GitHub repo
  2. Pushes a test commit (via SSH)
  3. Deploys the CDK example stack (CodePipeline + Lambda + CloudWatch Event Rule)
  4. Starts the pipeline and waits for it to run
  5. Polls the GitHub commit status API until success or failure is reported
  6. Cleans up: destroys the stack, deletes the repo, removes the SSM parameter

Note: If repo deletion fails (missing delete_repo scope), the script will print a link to delete it manually. To enable auto-deletion for future runs:

gh auth refresh -h github.com -s delete_repo