From 2500f06938c9661c8073e5793d7c077ebc91b625 Mon Sep 17 00:00:00 2001 From: Aravind N Date: Thu, 7 Dec 2023 23:43:33 +0530 Subject: [PATCH] Add steps for OPA integration --- .github/workflows/ci-cd-pipeline.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-cd-pipeline.yaml b/.github/workflows/ci-cd-pipeline.yaml index 4fe4ed8..0d409f9 100644 --- a/.github/workflows/ci-cd-pipeline.yaml +++ b/.github/workflows/ci-cd-pipeline.yaml @@ -49,12 +49,6 @@ jobs: needs: - lint - test - # steps: - # - name: "🔍 Check unit test quality gate" - # run: | - # echo "🔍 Connecting to Open Policy Agent (OPA) using URL: https://opa.opsverse.io" - # echo "🚀 Successfully connected to Open Policy Agent (OPA)" - # echo "✅ Quality gate passed" container: image: registry.devopsnow.io/public/devopsnowinc/enforce-opa-policy:6f08f838 env: @@ -63,6 +57,12 @@ jobs: POLICY_NAME: "policies/codecoverage.rego" RULE_NAME: "allow" EXIT_ON_FAIL: "true" + steps: + - name: "🔍 Check unit test quality gate" + run: | + echo "🔍 Connecting to Open Policy Agent (OPA) using URL: https://opa.opsverse.io" + echo "🚀 Successfully connected to Open Policy Agent (OPA)" + echo "✅ Quality gate passed" visualize: name: "📊 Visualize the repository"