-
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.
- Loading branch information
0 parents
commit 5f38f9f
Showing
49 changed files
with
6,067 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Lint CloudFormation Templates | ||
|
||
on: [push] | ||
|
||
jobs: | ||
|
||
# WILL RE ENABLE AFTER EVALUATION OF INIITAL FINDINGS | ||
|
||
# sast-cfn-lint: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: grolston/cfn-security@v2 | ||
# with: | ||
# cloudformation_directory: './deployments/aws/' | ||
# scanner: "cfn-lint" | ||
|
||
# sast-cfn-nag: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: grolston/cfn-security@v2 | ||
# with: | ||
# cloudformation_directory: './deployments/aws/' | ||
# scanner: "cfn-nag" | ||
|
||
# sast-checkov: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: grolston/cfn-security@v2 | ||
# with: | ||
# cloudformation_directory: './deployments/aws/' | ||
# scanner: "checkov" | ||
|
||
cloudformation-fmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Cloud Formation Formatter | ||
run: | | ||
gh release download --repo aws-cloudformation/rain --pattern "*_linux-amd64.zip" --output "rain.zip" | ||
unzip -j "rain.zip" "*/rain" | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
- name: Check Formatting | ||
run: ./rain fmt --verify ./deployments/aws/*.yaml |
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,60 @@ | ||
name: Snyk Scan | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
- releases/** | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
pull_request: | ||
types: ['opened', 'synchronize'] | ||
jobs: | ||
security: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: checkout | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# appsec wants specific naming rules for target scans, see https://teradata-infosec.atlassian.net/l/cp/t1ap1PS7 | ||
- name: Run Snyk on release tags to check for iac vulnerabilities and upload all results to snyk | ||
uses: snyk/actions/iac@master | ||
continue-on-error: true | ||
if: github.ref_type == 'tag' | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
command: test # monitor // currently only test is supported | ||
args: --target-reference=release_${{ github.ref_name }} | ||
|
||
# appsec wants specific naming rules for target scans, see https://teradata-infosec.atlassian.net/l/cp/t1ap1PS7 | ||
- name: Run Snyk on release branches to check for iac vulnerabilities and upload all results to snyk | ||
uses: snyk/actions/iac@master | ||
continue-on-error: true | ||
if: github.ref_type == 'branch' && startsWith(github.ref_name, 'releases/') | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
command: test # monitor // currently only test is supported | ||
args: --target-reference=release_${{ github.ref_name }} | ||
|
||
# appsec wants specific naming rules for target scans, see https://teradata-infosec.atlassian.net/l/cp/t1ap1PS7 | ||
- name: Run Snyk on develop branch to check for iac vulnerabilities and upload all results to snyk | ||
uses: snyk/actions/iac@master | ||
continue-on-error: true | ||
if: github.ref_type == 'branch' && ( github.ref_name == 'develop' || github.ref_name == 'main' ) | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
command: test # monitor // currently only test is supported | ||
args: --target-reference=develop_${{ github.ref_name }} | ||
|
||
- name: Run Snyk to check for high or critical iac vulnerabilities only, fail if found | ||
uses: snyk/actions/iac@master | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
command: test | ||
args: --severity-threshold=high |
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,6 @@ | ||
.vscode | ||
.DS_Store | ||
.terraform* | ||
terraform.tfstate* | ||
_README.md | ||
volumes/ |
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,5 @@ | ||
- id: cfn-format | ||
name: Format CloudFormation templates | ||
entry: rain fmt -w | ||
files: deployment/aws/*.yaml | ||
description: Format CloudFormation templates |
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 @@ | ||
TODO |
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.