-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:
pagerduty_service_integration_email
to trigger alerts on reci…
…eving email. (#36) This feature solves the requirement to automatically trigger alerts upon receiving specific emails to specific email addresses. Also has below changes: * ci: Remove shiftleft scan from workflow and update pre-commit config * feat: Create module for pagerduty-service-integration-email * feat: Add example for pagerduty-service-integration-email usage * test: Add test for pagerduty service integration email * test: Use random suffixes in all examples to avoid resource conflicts during testing * docs: update readme to account for random generator resource * test: Update all tests to account for the random suffixes in their assertions AND fix the 'destroy' part of these tests by moving the defer block upto the top
- Loading branch information
Showing
46 changed files
with
718 additions
and
138 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,64 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 # Get the latest version from: https://github.com/pre-commit/pre-commit-hooks/releases | ||
rev: v4.5.0 # Get the latest from: https://github.com/pre-commit/pre-commit-hooks/releases | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-yaml | ||
args: ['--allow-multiple-documents'] | ||
- id: check-added-large-files | ||
- id: detect-aws-credentials | ||
args: ["--allow-missing-credentials"] | ||
args: ['--allow-missing-credentials'] | ||
- repo: local | ||
hooks: | ||
- id: create-checkov-baseline | ||
name: Create Checkov Baseline | ||
entry: bash -c 'if [ ! -f .checkov.baseline ]; then echo "{}" > .checkov.baseline && touch baseline-created; fi' | ||
language: system | ||
stages: [commit] | ||
pass_filenames: false | ||
- repo: https://github.com/antonbabenko/pre-commit-terraform | ||
rev: v1.77.1 # Get the latest version from: https://github.com/antonbabenko/pre-commit-terraform/releases | ||
rev: v1.83.6 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases | ||
hooks: | ||
- id: terraform_fmt | ||
- id: terraform_docs | ||
- id: terraform_validate | ||
args: | ||
- --hook-config=--retry-once-with-cleanup=true | ||
- --tf-init-args=-upgrade | ||
- id: terraform_tfsec | ||
exclude: "test/" | ||
- id: terraform_checkov | ||
- repo: https://github.com/gitguardian/ggshield | ||
rev: v1.14.4 | ||
exclude: "test/" | ||
args: | ||
- --args=--baseline __GIT_WORKING_DIR__/.checkov.baseline | ||
- repo: local | ||
hooks: | ||
- id: ggshield | ||
language: python | ||
- id: delete-checkov-baseline | ||
name: Delete Checkov Baseline | ||
entry: bash -c 'if [ -f baseline-created ]; then rm .checkov.baseline && rm baseline-created; fi' | ||
language: system | ||
stages: [commit] | ||
args: [ 'secret', 'scan', 'pre-commit' ] | ||
pass_filenames: false | ||
- repo: https://github.com/gitguardian/ggshield | ||
rev: v1.21.0 | ||
hooks: | ||
- id: ggshield | ||
language: python | ||
stages: [commit] | ||
args: [ 'secret', 'scan', 'pre-commit' ] | ||
- repo: local | ||
hooks: | ||
- id: docs | ||
name: docs | ||
entry: make | ||
args: [ 'docs' ] | ||
language: system | ||
# Run this at the end so that we don't end up in infinite loop | ||
# where the end of line fixer runs first and then the docs and fmt | ||
# and other hooks that modify files will break it again. | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 # Get the latest from: https://github.com/pre-commit/pre-commit-hooks/releases | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.