Skip to content

Commit f8e6a38

Browse files
committed
Moving to common workflows
1 parent c7a71d0 commit f8e6a38

File tree

4 files changed

+16
-63
lines changed

4 files changed

+16
-63
lines changed

.github/workflows/lint_clean.yaml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,7 @@ name: 'Lint and Clean'
33
on:
44
pull_request:
55

6-
push:
7-
branches:
8-
- main
9-
106
jobs:
11-
fmt:
12-
name: Terraform FMT
13-
runs-on: ubuntu-latest
14-
container:
15-
image: hashicorp/terraform:latest
16-
steps:
17-
- uses: actions/checkout@v2
18-
- run: terraform fmt --recursive --diff -check=true
7+
fmt_and_lint:
8+
name: Terraform fmt and tflint
9+
uses: truefoundry/github-workflows-public/.github/workflows/terraform-lint-format.yml@v0.1.0

.github/workflows/terraform-docs.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@ on:
33
- pull_request
44

55
jobs:
6-
docs:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/checkout@v2
10-
with:
11-
ref: ${{ github.event.pull_request.head.ref }}
12-
13-
- name: Render terraform docs and push changes back to PR
14-
uses: terraform-docs/gh-actions@main
15-
with:
16-
git-push: "true"
6+
terraform-docs-generator:
7+
name: Generate terraform docs
8+
uses: truefoundry/github-workflows-public/.github/workflows/terraform-doc-generator.yml@v0.1.0

.github/workflows/terraform-scan.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Vulnerability scanning
2+
on:
3+
- pull_request
4+
5+
jobs:
6+
terraform-scan:
7+
name: Vulnerability scanning
8+
uses: truefoundry/github-workflows-public/.github/workflows/terraform-scan.yml@v0.1.0
9+
secrets:
10+
snyk_token: ${{ secrets.SNYK_TOKEN }}

.github/workflows/tflint.yaml

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)