Skip to content

Commit

Permalink
Debug actions and precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew Meyers committed Feb 22, 2024
1 parent 126df7e commit 81be583
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,12 @@ jobs:
echo "deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list.d/trivy.list
sudo apt-get update
sudo apt-get install trivy
- name: Install terraform-docs for pre-commit hook
run: |
curl -sSLo ./terraform-docs.tar.gz https://terraform-docs.io/dl/v0.17.0/terraform-docs-v0.17.0-$(uname)-amd64.tar.gz
tar -xzf terraform-docs.tar.gz
chmod +x terraform-docs
mv terraform-docs /usr/local/bin/
# - name: Install dependencies for Python tests
# run: |
# pip install -e ".[test]"
- uses: pre-commit/action@v3.0.1
with:
extra_args: --all-files
extra_args: --config .pre-commit-config-ci.yaml
# - name: Test with pytest
# run: |
# pytest -vv --gherkin-terminal-reporter unity-test/unit
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
rev: "v0.39.0"
hooks:
- id: markdownlint
args: ["--config", ".markdownlintrc", "--ignore", "CHANGELOG.md", "--ignore", "terraform-docs/**"]
args: ["--config", ".markdownlintrc", "--ignore", "CHANGELOG.md"]

- repo: https://github.com/PyCQA/isort
rev: 5.13.2
Expand Down Expand Up @@ -67,9 +67,9 @@ repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.86.0
hooks:
# - id: terraform_validate # Validates all Terraform configuration files.
# args:
# - --tf-init-args=-upgrade
- id: terraform_validate # Validates all Terraform configuration files.
args:
- --tf-init-args=-upgrade
- id: terraform_fmt # Rewrites all Terraform configuration files to a canonical format.
- id: terraform_tflint # Validates all Terraform configuration files with TFLint.
- id: terraform_trivy # Static analysis of Terraform templates to spot potential security issues.
Expand All @@ -81,4 +81,4 @@ repos:
- id: terraform_docs
args:
- --hook-config=--add-to-existing-file=true
- --hook-config=--create-file-if-not-exist=true
- --hook-config=--create-file-if-not-exist=true`

0 comments on commit 81be583

Please sign in to comment.