Skip to content

Commit

Permalink
Merge pull request #18 from truefoundry/common-workflows-v1-1
Browse files Browse the repository at this point in the history
Moved to common workflows
  • Loading branch information
dunefro authored Nov 5, 2024
2 parents bfc3f95 + 7cf7f0e commit febd3a8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 65 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/lint_clean.yaml
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]
16 changes: 5 additions & 11 deletions .github/workflows/terraform-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
10 changes: 10 additions & 0 deletions .github/workflows/terraform-scan.yaml
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 }}a
40 changes: 0 additions & 40 deletions .github/workflows/tflint.yaml

This file was deleted.

0 comments on commit febd3a8

Please sign in to comment.