Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving to common workflows #22

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 4 additions & 13 deletions .github/workflows/lint_clean.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
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]
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/github-workflows-public/.github/workflows/[email protected]
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 }}
40 changes: 0 additions & 40 deletions .github/workflows/tflint.yaml

This file was deleted.

Loading