Skip to content

Build Infrastructure-as-Code #9

Build Infrastructure-as-Code

Build Infrastructure-as-Code #9

# .github/workflows/trigger.yml
name: Build Infrastructure-as-Code
on:
push:
branches:
- main
- github_actions
workflow_dispatch:
permissions:
contents: read
id-token: write
actions: read
# Write access for security-events is only required for customers looking for MSDO results to appear in the codeQL security alerts tab on GitHub (Requires GHAS)
security-events: write
env:
PAT_TOKEN: ${{ secrets.AZURE_DEVOPS_PERSONAL_ACCESS_TOKEN }}
jobs:
terraform:
name: Terraform CI/CD Orchestration
# uses: casa-de-vops/terraform-code-standards/.github/workflows/tf_orchestration.yml@main
uses: ./.github/workflows/tf_orchestration.yml

Check failure on line 25 in .github/workflows/project-infrastructure-as-code.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/project-infrastructure-as-code.yml

Invalid workflow file

error parsing called workflow ".github/workflows/project-infrastructure-as-code.yml" -> "./.github/workflows/tf_orchestration.yml" (source branch with sha:24d70e0d479c37b8a6196c86f995b04a59128ab4) --> "./.github/workflows/tf_plan_task.yml" (source branch with sha:24d70e0d479c37b8a6196c86f995b04a59128ab4) : Invalid type for `on`
secrets: inherit
with:
tf_version: 'latest'
working_directory: 'terraform/'
environment: 'dev'
gh_environment: 'nonprod'
backend_azure_rm_resource_group_name: 'rg-terraform-ops'
backend_azure_rm_storage_account_name: 'casadevopsterraform'
backend_azure_rm_container_name: 'ops-terraform-state'
backend_azure_rm_key: 'project-casa-de-vops-devops.prod.tfstate'
plan_file_name: 'terraform.tfplan'
var_file: '../environments/infrastructure-as-code.tfvars'
command_option_args: '-var "azuredevops_personal_access_token=$PAT_TOKEN"'