-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* lint smtp mailer file * add precommit * lint shared functions file * lint shared functions file * format smtp mailer file * add gitleaks precommit * lint ses mailer file * lint mailgun mailer file * lint encryption file * lint destructor file * lint destructor file * lint destructor file * lint creator file * update imports order * update github actions version * update tf files and workflow * remove uploading semgrep results to github * fix iam policy syntax and upgrade python version * update libraries and fix syntax * add script to build lambda layers * use trap
- Loading branch information
1 parent
7f268fb
commit 677c35e
Showing
19 changed files
with
785 additions
and
490 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,9 @@ jobs: | |
run: | ||
working-directory: terraform | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Terraform | ||
uses: hashicorp/setup-terraform@v2 | ||
uses: hashicorp/setup-terraform@v3 | ||
- name: Terraform Init | ||
id: init | ||
run: terraform init | ||
|
@@ -22,14 +22,14 @@ jobs: | |
checkov: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
python-version: 3.11 | ||
- name: Scan with Checkov | ||
id: checkov | ||
uses: bridgecrewio/checkov-action@master | ||
uses: bridgecrewio/checkov-action@v12 | ||
with: | ||
directory: terraform | ||
framework: terraform | ||
|
@@ -39,7 +39,7 @@ jobs: | |
run: | ||
working-directory: src | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
|
@@ -52,15 +52,15 @@ jobs: | |
run: | ||
working-directory: src | ||
container: | ||
image: returntocorp/semgrep | ||
image: semgrep/semgrep | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- run: semgrep ci --config "p/ci" --config "p/python" --config "p/owasp-top-ten" --sarif --output=semgrep.sarif | ||
release: | ||
needs: [test, checkov, codeql, semgrep] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: "marvinpinto/[email protected]" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.3.2 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
# Run the formatter. | ||
- id: ruff-format | ||
- repo: https://github.com/gitleaks/gitleaks | ||
rev: v8.18.2 | ||
hooks: | ||
- id: gitleaks |
Oops, something went wrong.