Skip to content

feat!: Updated terraform checks action adding preview release. #260

feat!: Updated terraform checks action adding preview release.

feat!: Updated terraform checks action adding preview release. #260

Workflow file for this run

name: Terraform Master Workflow
on:
push:
branches:
- main
- master
pull_request_target:
types:
- opened
- edited
- synchronize
pull_request:
branches:
- main
- master
jobs:
releasePreview:

Check failure on line 18 in .github/workflows/terraform.yaml

View workflow run for this annotation

GitHub Actions / Terraform Master Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/terraform.yaml (Line: 18, Col: 3): Error calling workflow 'infraspecdev/terraform-aws-ecs-deployment/.github/workflows/release-preview.yaml@94d4c17663b485890dec4ca5faa3dfda48a4b515'. The nested job 'preview' is requesting 'contents: write', but is only allowed 'contents: read'.
name: Release Preview
if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }}
uses: ./.github/workflows/release-preview.yaml
permissions:
contents: read
pull-requests: write
preCommitCheck:
name: Terraform Checks
uses: ./.github/workflows/terraform-checks.yaml
generateDocs:
name: Generate Terraform Docs
needs: preCommitCheck
uses: ./.github/workflows/terraform-docs.yaml
release:
name: Release module
needs: generateDocs
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: ./.github/workflows/release.yaml