summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 22:31:09 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 22:31:09 +0000
commit9daa2256b59f1bf7b7b74446d5e1fd21292c518e (patch)
treeb2ad3e3658347080de93a4ad35018d67e549bca9
parent11ce5d8eca99965eecba23b4069085e55a94311c (diff)
automatic import of python-cdk-ecr-image-scan-notify
-rw-r--r--.gitignore1
-rw-r--r--python-cdk-ecr-image-scan-notify.spec323
-rw-r--r--sources1
3 files changed, 325 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8abfc5d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cdk-ecr-image-scan-notify-1.0.242.tar.gz
diff --git a/python-cdk-ecr-image-scan-notify.spec b/python-cdk-ecr-image-scan-notify.spec
new file mode 100644
index 0000000..6e4cfc2
--- /dev/null
+++ b/python-cdk-ecr-image-scan-notify.spec
@@ -0,0 +1,323 @@
+%global _empty_manifest_terminate_build 0
+Name: python-cdk-ecr-image-scan-notify
+Version: 1.0.242
+Release: 1
+Summary: cdk-ecr-image-scan-notify is an AWS CDK construct library that notify the slack channel of Amazon ECR image scan results
+License: Apache-2.0
+URL: https://github.com/hayao-k/cdk-ecr-image-scan-notify.git
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c5/03/316ead39de94e1f0d9c7a743f29e0bd0ec2e44b4848791e0e223c1c8d3fc/cdk-ecr-image-scan-notify-1.0.242.tar.gz
+BuildArch: noarch
+
+Requires: python3-aws-cdk-lib
+Requires: python3-constructs
+Requires: python3-jsii
+Requires: python3-publication
+Requires: python3-typeguard
+
+%description
+[![NPM version](https://badge.fury.io/js/cdk-ecr-image-scan-notify.svg)](https://badge.fury.io/js/cdk-ecr-image-scan-notify)
+[![PyPI version](https://badge.fury.io/py/cdk-ecr-image-scan-notify.svg)](https://badge.fury.io/py/cdk-ecr-image-scan-notify)
+![Release](https://github.com/hayao-k/cdk-ecr-image-scan-notify/workflows/release/badge.svg)
+
+# cdk-ecr-image-scan-notify
+
+cdk-ecr-image-scan-notify is an AWS CDK construct library that notify the slack channel of Amazon ECR image scan results.
+
+## Overview
+
+Amazon EventBridge (CloudWatch Events) detects the image scan execution and starts the Lambda function.
+The Lambda function summarizes the scan results, formatting them and notifying Slack.
+
+Basic scanning
+
+![](https://raw.githubusercontent.com/hayao-k/cdk-ecr-image-scan-notify/main/images/basic-scanning.png)
+
+Enhanced scanning (Support for initial scan only)
+
+![](https://raw.githubusercontent.com/hayao-k/cdk-ecr-image-scan-notify/main/images/enhanced-scanning.png)
+
+Click on an image name to go to the scan results page.
+
+![](https://github.com/hayao-k/ecr-image-scan-findings-to-slack/raw/master/docs/images/scan-result.png)
+
+## Getting Started
+
+### TypeScript
+
+Installation
+
+```
+$ yarn add cdk-ecr-image-scan-notify
+```
+
+Usage
+
+```python
+import * as cdk from 'aws-cdk-lib';
+import { EcrImageScanNotify } from 'cdk-ecr-image-scan-notify';
+
+const mockApp = new cdk.App();
+const stack = new cdk.Stack(mockApp, '<your-stack-name>');
+
+new EcrImageScanNotify(stack, 'ecr-image-scan-notify', {
+ webhookUrl: '<your-incoming-webhook-url>',
+});
+```
+
+Deploy!
+
+```
+$ cdk deploy
+```
+
+### Python
+
+Installation
+
+```
+$ pip install cdk-ecr-image-scan-notify
+```
+
+Usage
+
+```py
+import aws_cdk as cdk
+from cdk_ecr_image_scan_notify import EcrImageScanNotify
+
+app = cdk.App()
+stack = cdk.Stack(app, "<your-stack-name>", env={'region': 'ap-northeast-1'})
+
+EcrImageScanNotify(stack, "EcrImageScanNotify",
+ webhook_url = '<your-incoming-webhook-url>',
+)
+```
+
+Deploy!
+
+```
+$ cdk deploy
+```
+
+
+%package -n python3-cdk-ecr-image-scan-notify
+Summary: cdk-ecr-image-scan-notify is an AWS CDK construct library that notify the slack channel of Amazon ECR image scan results
+Provides: python-cdk-ecr-image-scan-notify
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-cdk-ecr-image-scan-notify
+[![NPM version](https://badge.fury.io/js/cdk-ecr-image-scan-notify.svg)](https://badge.fury.io/js/cdk-ecr-image-scan-notify)
+[![PyPI version](https://badge.fury.io/py/cdk-ecr-image-scan-notify.svg)](https://badge.fury.io/py/cdk-ecr-image-scan-notify)
+![Release](https://github.com/hayao-k/cdk-ecr-image-scan-notify/workflows/release/badge.svg)
+
+# cdk-ecr-image-scan-notify
+
+cdk-ecr-image-scan-notify is an AWS CDK construct library that notify the slack channel of Amazon ECR image scan results.
+
+## Overview
+
+Amazon EventBridge (CloudWatch Events) detects the image scan execution and starts the Lambda function.
+The Lambda function summarizes the scan results, formatting them and notifying Slack.
+
+Basic scanning
+
+![](https://raw.githubusercontent.com/hayao-k/cdk-ecr-image-scan-notify/main/images/basic-scanning.png)
+
+Enhanced scanning (Support for initial scan only)
+
+![](https://raw.githubusercontent.com/hayao-k/cdk-ecr-image-scan-notify/main/images/enhanced-scanning.png)
+
+Click on an image name to go to the scan results page.
+
+![](https://github.com/hayao-k/ecr-image-scan-findings-to-slack/raw/master/docs/images/scan-result.png)
+
+## Getting Started
+
+### TypeScript
+
+Installation
+
+```
+$ yarn add cdk-ecr-image-scan-notify
+```
+
+Usage
+
+```python
+import * as cdk from 'aws-cdk-lib';
+import { EcrImageScanNotify } from 'cdk-ecr-image-scan-notify';
+
+const mockApp = new cdk.App();
+const stack = new cdk.Stack(mockApp, '<your-stack-name>');
+
+new EcrImageScanNotify(stack, 'ecr-image-scan-notify', {
+ webhookUrl: '<your-incoming-webhook-url>',
+});
+```
+
+Deploy!
+
+```
+$ cdk deploy
+```
+
+### Python
+
+Installation
+
+```
+$ pip install cdk-ecr-image-scan-notify
+```
+
+Usage
+
+```py
+import aws_cdk as cdk
+from cdk_ecr_image_scan_notify import EcrImageScanNotify
+
+app = cdk.App()
+stack = cdk.Stack(app, "<your-stack-name>", env={'region': 'ap-northeast-1'})
+
+EcrImageScanNotify(stack, "EcrImageScanNotify",
+ webhook_url = '<your-incoming-webhook-url>',
+)
+```
+
+Deploy!
+
+```
+$ cdk deploy
+```
+
+
+%package help
+Summary: Development documents and examples for cdk-ecr-image-scan-notify
+Provides: python3-cdk-ecr-image-scan-notify-doc
+%description help
+[![NPM version](https://badge.fury.io/js/cdk-ecr-image-scan-notify.svg)](https://badge.fury.io/js/cdk-ecr-image-scan-notify)
+[![PyPI version](https://badge.fury.io/py/cdk-ecr-image-scan-notify.svg)](https://badge.fury.io/py/cdk-ecr-image-scan-notify)
+![Release](https://github.com/hayao-k/cdk-ecr-image-scan-notify/workflows/release/badge.svg)
+
+# cdk-ecr-image-scan-notify
+
+cdk-ecr-image-scan-notify is an AWS CDK construct library that notify the slack channel of Amazon ECR image scan results.
+
+## Overview
+
+Amazon EventBridge (CloudWatch Events) detects the image scan execution and starts the Lambda function.
+The Lambda function summarizes the scan results, formatting them and notifying Slack.
+
+Basic scanning
+
+![](https://raw.githubusercontent.com/hayao-k/cdk-ecr-image-scan-notify/main/images/basic-scanning.png)
+
+Enhanced scanning (Support for initial scan only)
+
+![](https://raw.githubusercontent.com/hayao-k/cdk-ecr-image-scan-notify/main/images/enhanced-scanning.png)
+
+Click on an image name to go to the scan results page.
+
+![](https://github.com/hayao-k/ecr-image-scan-findings-to-slack/raw/master/docs/images/scan-result.png)
+
+## Getting Started
+
+### TypeScript
+
+Installation
+
+```
+$ yarn add cdk-ecr-image-scan-notify
+```
+
+Usage
+
+```python
+import * as cdk from 'aws-cdk-lib';
+import { EcrImageScanNotify } from 'cdk-ecr-image-scan-notify';
+
+const mockApp = new cdk.App();
+const stack = new cdk.Stack(mockApp, '<your-stack-name>');
+
+new EcrImageScanNotify(stack, 'ecr-image-scan-notify', {
+ webhookUrl: '<your-incoming-webhook-url>',
+});
+```
+
+Deploy!
+
+```
+$ cdk deploy
+```
+
+### Python
+
+Installation
+
+```
+$ pip install cdk-ecr-image-scan-notify
+```
+
+Usage
+
+```py
+import aws_cdk as cdk
+from cdk_ecr_image_scan_notify import EcrImageScanNotify
+
+app = cdk.App()
+stack = cdk.Stack(app, "<your-stack-name>", env={'region': 'ap-northeast-1'})
+
+EcrImageScanNotify(stack, "EcrImageScanNotify",
+ webhook_url = '<your-incoming-webhook-url>',
+)
+```
+
+Deploy!
+
+```
+$ cdk deploy
+```
+
+
+%prep
+%autosetup -n cdk-ecr-image-scan-notify-1.0.242
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-cdk-ecr-image-scan-notify -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.242-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..1df561d
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+3045ccd4f02701857983e7d5cfa797b4 cdk-ecr-image-scan-notify-1.0.242.tar.gz