From c6d36375eb735d54ba4370daf19c7d0b93591838 Mon Sep 17 00:00:00 2001 From: zMynx Date: Fri, 18 Aug 2023 20:26:20 +0300 Subject: [PATCH] dynamic workflow call --- .github/workflows/action.yaml | 8 ++++---- .github/workflows/terrascan/terrascan.yaml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/action.yaml b/.github/workflows/action.yaml index f68967b..21f6935 100644 --- a/.github/workflows/action.yaml +++ b/.github/workflows/action.yaml @@ -1,4 +1,4 @@ -name: Test +name: Test dynamic uses on: workflow_dispatch: push: @@ -28,6 +28,6 @@ jobs: # uses: ${{ vars.ORG_NAME }}/${{ vars.REPO_NAME }}/.github/actions/python/pytest@feature/gha # with: # requirements_file: ./poc/pytest/requirements.txt - # check2: - # name: Call reusable workflow - # uses: ${{ vars.ORG_NAME }}/${{ vars.REPO_NAME }}/.github/workflows/ci-pytest.yaml@feature/gha + check2: + name: Call reusable workflow + uses: ${{ format('{0}/{1}/.github/workflows/ci-pytest.yaml@{2}', vars.ORG_NAME, vars.REPO_NAME, vars.REF) }} diff --git a/.github/workflows/terrascan/terrascan.yaml b/.github/workflows/terrascan/terrascan.yaml index 92c42cd..7c41b22 100644 --- a/.github/workflows/terrascan/terrascan.yaml +++ b/.github/workflows/terrascan/terrascan.yaml @@ -18,7 +18,7 @@ jobs: policy_type: "aws" only_warn: true sarif_upload: true - webhook_url: ${{ secrets.SLACK_WEBHOOK_PROD }} + # webhook_url: ${{ secrets.SLACK_WEBHOOK_PROD }} find_vulnerabilities: true #non_recursive: #iac_dir: