add debug ci workflow steps #671
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: terraform-ci | ||
on: | ||
pull_request: | ||
permissions: | ||
actions: read | ||
checks: read | ||
contents: read | ||
pull-requests: write | ||
security-events: write | ||
jobs: | ||
ci: | ||
steps: | ||
# Add this step to clear the Terraform cache directory | ||
- name: Clear Terraform Cache | ||
run: rm -rf .terraform | ||
# This ensures the cache directory is deleted before reinitializing Terraform | ||
# Add this step to reinitialize Terraform with the -upgrade flag | ||
- name: Initialize Terraform with upgrade | ||
run: terraform init -upgrade | ||
# This step ensures that all modules and providers are upgraded and reinitialized | ||
uses: SPHTech-Platform/reusable-workflows/.github/workflows/terraform.yaml@v2 | ||
with: | ||
upload_sarif: true |