Skip to content

Latest commit

 

History

History
30 lines (15 loc) · 1.26 KB

linting.md

File metadata and controls

30 lines (15 loc) · 1.26 KB

Linting / Validation

Secrets / Credentials

Avoid leaking secrets and credentials by running Gitleaks.

CloudFormation

Run cfn_nag on CloudFormation templates to look for indications of insecure infrastructure. Run cfn-lint (if your IDE doensn't already do it) to check your templates against the AWS CloudFormation Specification

Python

Use Bandit to find common security issues in Python code.

Dockerfiles

Lint your Dockerfiles with hadolint

UNIX shell scripts

Run shellcheck to perform static analysis on Bash/Sh family shell scripts.

Ansible

Use ansible-lint to check playbooks for practices and behavior that could potentially be improved.

Terraform

Configure tflint with the rules for Terraform Language and the AWS ruleset to check Terraform files.