Skip to content

Commit

Permalink
Moved to common workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
dunefro committed Nov 1, 2024
1 parent c329156 commit 66b5ca4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 63 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/lint_clean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,7 @@ name: 'Lint and Clean'
on:
pull_request:

push:
branches:
- main

jobs:
fmt:
name: Terraform FMT
runs-on: ubuntu-latest
container:
image: hashicorp/terraform:latest
steps:
- uses: actions/checkout@v2
- run: terraform fmt --recursive --diff -check=true
fmt_and_lint:
name: Terraform fmt and tflint
uses: truefoundry/workflows/.github/workflows/terraform-lint-format.yml@iac-scanning
14 changes: 3 additions & 11 deletions .github/workflows/terraform-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@ on:
- pull_request

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Render terraform docs and push changes back to PR
uses: terraform-docs/gh-actions@main
with:
git-push: "true"
terraform-docs-generator:
name: Generate terraform docs
uses: truefoundry/workflows/.github/workflows/terraform-doc-generator.yml@iac-scanning
8 changes: 8 additions & 0 deletions .github/workflows/terraform-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Vulnerability scanning
on:
- pull_request

jobs:
terraform-scan:
name: Vulnerability scanning
uses: truefoundry/workflows/.github/workflows/terraform-scan.yml@iac-scanning
40 changes: 0 additions & 40 deletions .github/workflows/tflint.yaml

This file was deleted.

0 comments on commit 66b5ca4

Please sign in to comment.