Skip to content

Commit

Permalink
auto review git action
Browse files Browse the repository at this point in the history
  • Loading branch information
himsharma01 committed Sep 28, 2024
1 parent 0e3a0d0 commit 2274bcc
Show file tree
Hide file tree
Showing 18 changed files with 2,111 additions and 12 deletions.
46 changes: 34 additions & 12 deletions .github/workflows/v2App_Unit_Test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,42 @@ jobs:
- name: "Install sumoappsuite tool"
run: |
pip3 install $GITHUB_WORKSPACE/scripts/sumologic_appdevutils*.whl
- name: "Install terraform"
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.9.2
- name: "Set TERRAFORM_PATH"
run: |
echo "TERRAFORM_PATH=$(which terraform)" >> $GITHUB_ENV
- name: "Verify TERRAFORM_PATH"
run: |
echo "Terraform path: ${{ env.TERRAFORM_PATH }}"
${{ env.TERRAFORM_PATH }} --version
- name: "Generate SCR File"
run: |
sumoappsuite generate-scr-file-v2-app && cat scr_app_list.yaml
sumoappsuite generate-scr-file-v2-app && cat scr_app_list.yaml | yq ".apps[0].relativeFolderPath" >> appPath
- name: "Run Sumo Logic App Tests"
run: |
sumoappsuite run-all-app-tests-v2 -f scr_app_list.yaml -e test_tfApp_installable,test_is_deployable,test_sumo_query,test_threatintel_query,test_update_v2_app
- name: Set up AWS CLI
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: "us-west-2"

- name: List objects in S3 bucket #Testing aws cli
run: aws s3 ls

- name: "Run Sumo Logic App Review tool" #sumoappsuite review-v2-app -f "{SUMO_APPS_V2_REPO_PATH}{appPath}"
run: |
echo "{SUMO_APPS_V2_REPO_PATH}{appPath}"
# - name: Upload Excel Sheet as PR Comment
# uses: actions/upload-artifact@v2
# with:
# name: excel-sheet
# path: appreviewoutput.xlsx
# - name: Comment on PR with Excel Sheet
# uses: actions/github-script@v4
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# script: |
# const fs = require('fs');
# const data = fs.readFileSync('appreviewoutput.xlsx', 'utf8');
# github.issues.createComment({
# issue_number: context.issue.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body: 'Excel Sheet generated from the command:\n```' + data + '```'
# })
Binary file not shown.
5 changes: 5 additions & 0 deletions src/AmazonSes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## [1.0.0] - 2024-02-18
### Added
- Migrated to [next-gen](https://help.sumologic.com/docs/get-started/apps-integrations/#next-gen-apps) app.
Empty file added src/AmazonSes/README.md
Empty file.
Binary file added src/AmazonSes/assets/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/AmazonSes/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
parameters:
- componentType: scope
label: SES Notifications data source
keyTfVar: scope_key
defaultValueTfVar: default_scope_value
- componentType: scope
label: CloudTrail Logs data source
keyTfVar: scope_key1
defaultValueTfVar: default_scope_value1
62 changes: 62 additions & 0 deletions src/AmazonSes/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
schemaVersion: '2.0'
name: Amazon SES hackathon2k24 demo
version: 1.0.0
description: Amazon Simple Email Service (Amazon SES) is a cloud-based email sending
and receiving service. The Sumo Logic App for Amazon SES helps you monitor the email
platform activities. The app uses CloudTrail events and SES notifications, and provides
pre-configured dashboards that provide insights on the status of the email delivery
including bounced notifications, delivered notifications, complaint notifications
and various SES CloudTrail events.
author:
supportUrl: https://support.sumologic.com/
homeUrl: https://sumologic.com
documentationUrl: https://help.sumologic.com/?cid=406456
name: Sumo Logic
attributes:
category:
- Amazon Web Services
- IT Infrastructure
useCase:
- observability
collection:
- Hosted
searchTerms:
- amazon
- aws
appOverview:
overview: README.md#Overview
appMedia:
- title: Amazon SES - Bounced Notifications
description: See details of bounced notifications by email addresses, domains, bounce
types, and bounce subtypes.
type: image
location: ./assets/images/preview/Amazon-SES-Bounced-Notifications.png
- title: Amazon SES - CloudTrail Events Overview
description: See an overview of SES CloudTrail events, including failed, and successful
events, error codes, users, and event locations.
type: image
location: ./assets/images/preview/Amazon-SES-CloudTrail-Events-Overview.png
- title: Amazon SES - CloudTrail Events by Event Name
description: See details of various SES CloudTrail events, including the identity,
get send, domain, receipt, and email address events.
type: image
location: ./assets/images/preview/Amazon-SES-CloudTrail-Events-by-Event-Name.png
- title: Amazon SES - Complaint Notifications
description: See information about complaints (a complaint occurs when a recipient
reports that they don't want to receive an email), including the top email addresses,
email domains, and UserAgents associated with complaints; and the sending AccountId,
AWS region, SourceIP, and Identity associated with complaints.
type: image
location: ./assets/images/preview/Amazon-SES-Complaint-Notifications.png
- title: Amazon SES - Delivered Notifications
description: See details of delivered notifications including the email destinations,
domains, reporting MTA, and delivery processing time.
type: image
location: ./assets/images/preview/Amazon-SES-Delivered-Notifications.png
- title: Amazon SES - Notification Overview
description: See an overview of SES notifications including the source IP locations,
notification types, mail source, and accountId.
type: image
location: ./assets/images/preview/Amazon-SES-Notification-Overview.png
installable: true
showOnMarketplace: true
Loading

0 comments on commit 2274bcc

Please sign in to comment.