-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from truefoundry/common-workflows
Moved to common workflows
- Loading branch information
Showing
4 changed files
with
20 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
name: 'Terraform formatting' | ||
name: 'Lint and Clean' | ||
|
||
on: | ||
pull_request: | ||
|
||
push: | ||
branches: | ||
- main | ||
- pull_request | ||
|
||
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/github-workflows-public/.github/workflows/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,8 @@ 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/github-workflows-public/.github/workflows/[email protected] | ||
with: | ||
commit_ref: ${{ github.event.pull_request.head.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Vulnerability scanning | ||
on: | ||
- pull_request | ||
|
||
jobs: | ||
terraform-scan: | ||
name: Vulnerability scanning | ||
uses: truefoundry/github-workflows-public/.github/workflows/[email protected] | ||
secrets: | ||
snyk_token: ${{ secrets.SNYK_TOKEN }} |
This file was deleted.
Oops, something went wrong.