mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
docs: Added checkov install (#182)
This commit is contained in:
parent
47b80ec9d5
commit
53de83359e
1 changed files with 7 additions and 3 deletions
10
README.md
10
README.md
|
|
@ -16,17 +16,21 @@
|
|||
##### MacOS
|
||||
|
||||
```bash
|
||||
brew install pre-commit gawk terraform-docs tflint tfsec coreutils
|
||||
brew install pre-commit gawk terraform-docs tflint tfsec coreutils checkov
|
||||
```
|
||||
|
||||
##### Ubuntu
|
||||
##### Ubuntu 18.04
|
||||
|
||||
```bash
|
||||
sudo apt install python3-pip gawk unzip &&\
|
||||
sudo apt update
|
||||
sudo apt install -y gawk unzip software-properties-common
|
||||
sudo add-apt-repository ppa:deadsnakes/ppa
|
||||
sudo apt install -y python3.7 python3-pip
|
||||
pip3 install pre-commit
|
||||
curl -L "$(curl -s https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest | grep -o -E "https://.+?-linux-amd64.tar.gz")" > terraform-docs.tgz && tar xzf terraform-docs.tgz && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/
|
||||
curl -L "$(curl -s https://api.github.com/repos/terraform-linters/tflint/releases/latest | grep -o -E "https://.+?_linux_amd64.zip")" > tflint.zip && unzip tflint.zip && rm tflint.zip && sudo mv tflint /usr/bin/
|
||||
env GO111MODULE=on go get -u github.com/tfsec/tfsec/cmd/tfsec
|
||||
python3.7 -m pip install -U checkovpython3.7 -m pip install -U checkov
|
||||
```
|
||||
|
||||
### 2. Install the pre-commit hook globally
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue