Skip to content

refactor: Change ref from gh action to .github #1

refactor: Change ref from gh action to .github

refactor: Change ref from gh action to .github #1

Workflow file for this run

---
name: Analyze Terraform
on:
workflow_call:
inputs:
tfdir:
description: 'Terraform directory to analyze'
required: true
default: '.'
type: string
secrets:
MONDOO_SERVICE_ACCOUNT:
description: 'Mondoo Service Account'
required: true
jobs:
analyze_tf:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check if ${{ inputs.tfdir }} changed
id: detect
uses: tj-actions/changed-files@v44
with:
path: ${{ inputs.tfdir }}
- name: run terraform anlysis
if: ( steps.detect.outputs.all_changed_files != '' && always() ) || ( github.event_name == 'workflow_dispatch' && always() )
uses: infralovers/.github/.github/workflows/terraform-analyse@main
with:
tfdir: ${{ inputs.tfdir }}
mondoo_service_account: ${{ secrets.MONDOO_SERVICE_ACCOUNT }}