Skip to content
Closed
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
7 changes: 6 additions & 1 deletion .github/workflows/infracost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: 💸 Infracost Analysis
on:
workflow_call:
inputs:
runs_on:
description: GitHub Actions runner to use (for example a self-hosted runner label)
type: string
required: false
default: ubuntu-latest
working-directory:
required: true
description: Working directory of terraform resources
Expand All @@ -25,7 +30,7 @@ on:
jobs:
infracost:
name: 💸 Infracost Analysis
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs_on }}
steps:
- name: 🛠️ Setup Infracost
uses: infracost/actions/setup@fb736a8f219195d6efdca58682069b16fe1bc280 # v4.2.0
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/smurf-tf-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ name: 🧪 tf Checks
on:
workflow_call:
inputs:
runs_on:
description: GitHub Actions runner to use (for example a self-hosted runner label)
type: string
required: false
default: ubuntu-latest
working_directory:
description: 'Directory where a complete example exists for the module.'
required: false
Expand Down Expand Up @@ -88,7 +93,7 @@ jobs:
# - Terraform version extract as output.
versionExtract:
name: 🏷️ Get min/max versions
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs_on }}

outputs:
minVersion: ${{ steps.minMax.outputs.minVersion }}
Expand All @@ -107,7 +112,7 @@ jobs:
# - Evaluating terraform version based on version extract
versionEvaluate:
name: 🧪 Evaluate Terraform versions
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs_on }}
needs: versionExtract
strategy:
fail-fast: false
Expand Down Expand Up @@ -173,7 +178,7 @@ jobs:
# Action to verify terraform formatting.
format:
name: 🧹 Check code format
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs_on }}
needs: [versionExtract, versionEvaluate]

steps:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/tf-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: '📡 Terraform Configuration Drift Detection'
on:
workflow_call:
inputs:
runs_on:
description: GitHub Actions runner to use (for example a self-hosted runner label)
type: string
required: false
default: ubuntu-latest
working_directory:
required: true
type: string
Expand Down Expand Up @@ -94,7 +99,7 @@ on:
jobs:
terraform-plan:
name: 'Terraform Plan'
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs_on }}
env:
# This is needed since we are running terraform with read-only permissions
ARM_SKIP_PROVIDER_REGISTRATION: true
Expand Down
1 change: 1 addition & 0 deletions docs/infracost.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
infracost:
uses: clouddrove/github-shared-workflows/.github/workflows/infracost.yml@v2
with:
runs_on: # Optional runner label, default ubuntu-latest (e.g. a self-hosted scale set)
working-directory: # Need to specify working-directory as that's where the terraform files live in the source code
slack_notification: # If we need slack notification then its value is true else false
secrets:
Expand Down
1 change: 1 addition & 0 deletions docs/smurf-tf-checks.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
terraform-checks:
uses: clouddrove/github-shared-workflows/.github/workflows/smurf-tf-checks.yml@v2
with:
runs_on: # Optional runner label, default ubuntu-latest (e.g. a self-hosted scale set)
working_directory: './examples/complete/'
provider: 'azurerm'
secrets:
Expand Down
Loading