Skip to content

Commit 06e99d1

Browse files
authored
Merge pull request #6 from truefoundry/common-workflows-v1-1
Adding commit ref
2 parents 594873f + 167ae81 commit 06e99d1

File tree

5 files changed

+20
-65
lines changed

5 files changed

+20
-65
lines changed

.github/workflows/lint_clean.yaml

+4-13
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
name: 'Lint and Clean'
22

33
on:
4-
pull_request:
5-
6-
push:
7-
branches:
8-
- main
4+
- pull_request
95

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.1

.github/workflows/terraform-docs.yaml

+5-11
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,8 @@ 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.1
9+
with:
10+
commit_ref: ${{ github.event.pull_request.head.ref }}

.github/workflows/terraform-scan.yaml

+10
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.1
9+
secrets:
10+
snyk_token: ${{ secrets.SNYK_TOKEN }}

.github/workflows/tflint.yaml

-40
This file was deleted.

versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ terraform {
66
version = "4.81.0"
77
}
88
time = {
9-
source = "hashicorp/time"
9+
source = "hashicorp/time"
1010
version = "0.12.1"
1111
}
1212
}

0 commit comments

Comments
 (0)