Skip to content

Workflow syntax fix

Workflow syntax fix #6

name: terraform plan (management-account/entraid-scim)
on:
pull_request:
paths:
- 'management-account/terraform/entraid-scim/**å'
- '.github/workflows/management-account-entraid-scim-plan.yml'
- '.github/workflows/management-account-entraid-scim-apply.yml'
workflow_dispatch:
schedule:
- cron: "0 */2 * * *" # Every 2 hours
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
plan:
runs-on: ubuntu-latest
if: |
github.event_name != 'schedule' || github.ref == 'refs/heads/main' # Run on cron only for main branch
permissions:
id-token: write
contents: read
defaults:
run:
working-directory: ./management-account/terraform/entraid-scim
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
with:
role-to-assume: arn:aws:iam::${{secrets.AWS_ROOT_ACCOUNT_ID}}:role/github-actions-plan
role-session-name: GitHubActions
aws-region: eu-west-2
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
with:
terraform_version: 1.7.5
- run: terraform fmt -check
continue-on-error: true
- run: terraform init
- run: terraform validate -no-color
- run: terraform plan -no-color