Skip to content

feat: use action to update comment with check ressults #419

feat: use action to update comment with check ressults

feat: use action to update comment with check ressults #419

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
permissions:
id-token: write
contents: read
pull-requests: write
jobs:
# Runs both Terraform checks and Trivy scan against a valid configuration.
terraform-valid:
uses: ./.github/workflows/workflow.yaml

Check failure on line 16 in .github/workflows/test.yaml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. In .github/workflows/test.yaml (Line: 16, Col: 11): Error from called workflow nrkno/github-workflow-terraform-config/.github/workflows/workflow.yaml@55feec9227a515d3eec4b6fbc197508f9793110c (Line: 279, Col: 17): Unexpected symbol: '?'. Located at position 36 within expression: steps.fmt.outputs.exit_code == '0' ? '✔️' : '❌'
with:
working-directory: ./test/terraform
runs-on: ubuntu-latest
terraform-docs-fail-on-diff: false
workflow-ref: "${{ github.sha }}"
# Runs Trivy scan against a vulnerable config.
trivy-invalid:
uses: ./.github/workflows/workflow.yaml
with:
terraform-job-enabled: false
trivy-error-is-success: true
working-directory: ./test/trivy
runs-on: ubuntu-latest
workflow-ref: "${{ github.sha }}"