feature: knob to disable dead letter queue alert for trigger module #299
Workflow file for this run
This file contains 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: Validate terraform | |
on: | |
pull_request: | |
branches: [ 'main' ] | |
permissions: | |
contents: read | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
module: | |
- audit-serviceaccount | |
- authorize-private-service | |
- bucket-events | |
- cloudevent-broker | |
- cloudevent-trigger | |
- cloudevent-recorder | |
- regional-go-service | |
- serverless-gclb | |
- otel-collector | |
- networking | |
- dashboard/service | |
- dashboard/job | |
- dashboard/cloudevent-receiver | |
- prober | |
- cron | |
- configmap | |
- secret | |
- github-wif-provider | |
- github-gsa | |
- github-events | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
- uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3.0.0 | |
- working-directory: modules/${{ matrix.module }} | |
run: | | |
terraform init | |
terraform validate | |
conclusion: | |
permissions: | |
actions: read | |
needs: validate | |
runs-on: ubuntu-latest | |
if: always() | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | |
with: | |
egress-policy: audit | |
- uses: technote-space/workflow-conclusion-action@45ce8e0eb155657ab8ccf346ade734257fd196a5 # v3.0.3 | |
- if: ${{ env.WORKFLOW_CONCLUSION == 'success' }} | |
working-directory: /tmp | |
run: echo ${{ env.WORKFLOW_CONCLUSION }} && exit 0 | |
- if: ${{ env.WORKFLOW_CONCLUSION == 'failure' }} | |
working-directory: /tmp | |
run: echo ${{ env.WORKFLOW_CONCLUSION }} && exit 1 |