Skip to content

Commit

Permalink
chore: synced file(s) with honestbank/.github
Browse files Browse the repository at this point in the history
  • Loading branch information
honestbank-bot committed Aug 3, 2023
1 parent 7a2fc8d commit 16ba8a7
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 11 deletions.
1 change: 1 addition & 0 deletions .checkov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ quiet: true
skip-path:
- .external_modules
- modules
- catalog-info.yml
8 changes: 7 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-->

## Pull Request Submission Checklist
### Pull Request Submission Checklist

Please confirm that you have done the following before requesting reviews:

Expand All @@ -17,3 +17,9 @@ Please confirm that you have done the following before requesting reviews:
### Description

* <!-- WRITE A SHORT DESCRIPTION OF CHANGES -->

### Experiment Link

<!-- All code changes require an experiment - you can get started at https://www.notion.so/honestbank/How-to-create-a-feature-flag-ON-OFF-on-GrowthBook-0a11a156397d4eca89fb76dad0eb921c?pvs=4 -->

GrowthBook Experiment Link: https://app.growthbook.io/features/
27 changes: 27 additions & 0 deletions .github/workflows/checkov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# yamllint disable rule:line-length
# Use template from https://github.com/honestbank/workflows/tree/main/examples/repository-workflows
---
name: "repository-checkov"
permissions: read-all

on: # yamllint disable-line rule:truthy
pull_request:
branches:
- test
- dev
- qa
- prod
- main
push:
branches:
- test
- dev
- qa
- prod
- main

jobs:
repository-checkov:
name: repository-checkov
uses: honestbank/workflows/.github/workflows/shared-checkov.yaml@main
secrets: inherit
33 changes: 33 additions & 0 deletions .github/workflows/shiftleft-terraform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# yamllint disable rule:line-length
# Use template from https://github.com/honestbank/workflows/tree/main/examples/repository-workflows
---
name: "repository-shiftleft-terraform"
permissions: read-all

on: # yamllint disable-line rule:truthy
pull_request:
branches:
- test
- dev
- qa
- prod
- main
push:
branches:
- test
- dev
- qa
- prod
- main
schedule:
# * is a special character in YAML so you have to quote this string
# schedule a job to run every day at 17:30 UTC
- cron: '30 17 * * *'

jobs:
repository-shiftleft-terraform:
name: repository-shiftleft-terraform
uses: honestbank/workflows/.github/workflows/shared-terraform-shiftleft.yaml@main
with:
repo_name: ${{ github.event.repository.name }}
secrets: inherit
27 changes: 17 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,28 @@ repos:
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: detect-aws-credentials
args: ["--allow-missing-credentials"]
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.81.0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases
hooks:
- id: terraform_fmt
- id: terraform_docs
- id: terraform_validate
exclude: (test/|examples/)
- id: terraform_tfsec
exclude: (test/|examples/)
exclude: "test/"
- id: terraform_checkov
exclude: (test/|examples/)
- repo: https://github.com/gitguardian/ggshield
rev: v1.16.0 # Update to latest version by running `pre-commit autoupdate`
exclude: "test/"
- repo: https://github.com/gitguardian/ggshield
rev: v1.17.3
hooks:
- id: ggshield
language: python
stages: [commit]
args: [ 'secret', 'scan', 'pre-commit' ]
- repo: local
hooks:
- id: ggshield
language: python
stages: [commit]
args: [ 'secret', 'scan', 'pre-commit' ]
- id: docs
name: docs
entry: make
args: [ 'docs' ]
language: system

0 comments on commit 16ba8a7

Please sign in to comment.