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

@condensetech/cdk-ecr-scan-alert

v0.0.0

Published

AWS CDK construct that runs ECR image vulnerability scans during deployment and reports findings to GitHub. Blocks deployment when critical or high-severity vulnerabilities are found (configurable).

Downloads

71

Readme

cdk-ecr-scan-alert

AWS CDK construct that runs ECR image vulnerability scans during deployment and reports findings to GitHub. Blocks deployment when critical or high-severity vulnerabilities are found (configurable).

Features

  • Scans ECR images via StartImageScan and polls until completion
  • Blocks deployment by default if vulnerabilities exceed the severity threshold
  • GitHub integration — posts formatted reports as PR comments or creates issues
  • Configurable severity thresholds — CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL, UNDEFINED
  • Rollback-safe — suppresses errors during CloudFormation rollback to avoid ROLLBACK_FAILED

Prerequisites

  • (Optional) ECR scan on push. If not present the construct will require a scan
  • (Optional) GitHub token in Secrets Manager for posting alerts

Installation

# Using pnpm
pnpm add @condensetech/cdk-ecr-scan-alert

# Using npm
npm install @condensetech/cdk-ecr-scan-alert

# Using yarn
yarn add @condensetech/cdk-ecr-scan-alert

Usage

import * as ecr from 'aws-cdk-lib/aws-ecr';
import { EcrScanAlert } from '@condensetech/cdk-ecr-scan-alert';

// In your stack:
const repo = ecr.Repository.fromRepositoryName(this, 'Repo', 'my-ecr-repo');

new EcrScanAlert(this, 'ScanAlert', {
  imageUri: '123456789012.dkr.ecr.us-east-1.amazonaws.com/my-ecr-repo:v1.2.3',
  repository: repo,
  github: {
    owner: 'my-org',
    repo: 'my-app',
    tokenSecretName: 'github/token',
    prNumber: 42, // optional: comment on PR instead of creating an issue
  },
});

Minimal (no GitHub integration)

new EcrScanAlert(this, 'ScanAlert', {
  imageUri: '123456789012.dkr.ecr.us-east-1.amazonaws.com/my-repo:latest',
  repository: repo,
});

API Reference

| Property | Type | Required | Default | Description | |----------|------|----------|---------|-------------| | imageUri | string | Yes | — | Full ECR image URI (e.g. account.dkr.ecr.region.amazonaws.com/repo:tag) | | repository | IRepository | Yes | — | ECR repository (used for IAM permissions) | | github | EcrScanAlertGitHubProps | No | — | GitHub integration: { owner, repo, tokenSecretName, prNumber? } | | severityThreshold | string[] | No | ['CRITICAL', 'HIGH'] | Severities that cause failure | | suppressErrorOnRollback | boolean | No | true | Suppress errors during rollback to avoid ROLLBACK_FAILED | | blockDeployment | boolean | No | true | When true, deployment fails on findings; when false, deployment proceeds but GitHub alerts still post |

EcrScanAlertGitHubProps (when using github)

| Property | Type | Required | Description | |----------|------|----------|-------------| | owner | string | Yes | GitHub org or username | | repo | string | Yes | GitHub repository name | | tokenSecretName | string | Yes | Secrets Manager secret name containing the GitHub token | | prNumber | number | No | If set, comment on this PR instead of creating an issue |

GitHub Integration

  1. Create a GitHub fine-grained token or classic PAT with:

    • Repository access: the target repo(s)
    • Permissions: Issues: Read and write, Pull requests: Read and write, Metadata: Read-only
  2. Store the token in AWS Secrets Manager:

    aws secretsmanager create-secret \
      --name github/token \
      --secret-string "ghp_xxxx"
  3. Pass the github prop to the construct with owner, repo, and tokenSecretName.

PR vs Issue

  • With prNumber: Posts/updates a single comment on the PR (ideal for CI deployments from PRs)
  • Without prNumber: Creates a new GitHub issue for each failure

License

Apache-2.0