Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Scanning Terraform in test-infra #150

Scanning Terraform in test-infra

Scanning Terraform in test-infra #150

name: terraform-lint-scan
on:
pull_request:
branches:
- main
paths:
- ".github/test-infra/**"
- "!.github/test-infra/eks/*"
- ".github/workflows/ci-on-pull-request-infra.yaml"
- ".github/workflows/terraform-lint.yaml"
run-name: Scanning Terraform in test-infra
jobs:
check-paths:
runs-on: ubuntu-latest
name: Select Jobs
outputs:
paths: ${{ steps.path-filter.outputs.changes }}
steps:
- name: Checkout the code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
# Uses a custom action to filter paths for capabilities.
- name: Check paths
id: path-filter
uses: dorny/paths-filter@v2
with:
filters: .github/filters.yml
scan-tf:
needs: check-paths
name: scan
strategy:
matrix:
path: ${{ fromJSON(needs.check-paths.outputs.paths) }}
uses: ./.github/workflows/terraform-lint.yaml
with:
path: ${{ matrix.path }}
secrets: inherit # Inherits all secrets from the parent workflow.