Skip to content

Merge pull request #63 from sigstore/dependabot/github_actions/action… #49

Merge pull request #63 from sigstore/dependabot/github_actions/action…

Merge pull request #63 from sigstore/dependabot/github_actions/action… #49

Workflow file for this run

# Copyright 2024 The Sigstore Authors
# SPDX-License-Identifier: Apache-2.0
name: terraform-lint-validate
on:
push:
branches:
- main
pull_request:
jobs:
lint-and-validate:
name: terraform-lint-validate
runs-on: ubuntu-latest
if: github.repository == 'sigstore/sigstore-devops-tools'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
with:
terraform_version: 1.8
- run: terraform fmt -check
- run: cp $GITHUB_WORKSPACE/.github/testdata/backend_override.tf $GITHUB_WORKSPACE/iac
- working-directory: ./iac
run: |
terraform init
terraform validate