From 8d286a93c45668368abaed4bf8ed9662a74b6776 Mon Sep 17 00:00:00 2001 From: WengOnn-Deriv <122330473+WengOnn-Deriv@users.noreply.github.com> Date: Tue, 18 Jun 2024 11:47:43 +0800 Subject: [PATCH] Fix gh action vulnerable env --- .github/workflows/production-eu.yml | 2 +- .github/workflows/production-row.yml | 2 +- .github/workflows/staging-eu.yml | 2 +- .github/workflows/staging-row.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/production-eu.yml b/.github/workflows/production-eu.yml index 59f6b306d61..88bce2c44ce 100644 --- a/.github/workflows/production-eu.yml +++ b/.github/workflows/production-eu.yml @@ -125,7 +125,7 @@ jobs: run: | git clone https://github.com/binary-com/devops-ci-scripts cd devops-ci-scripts/k8s-build_tools - echo "${{ env.CA_CRT }}" | base64 --decode > ca.crt + echo "$CA_CRT" | base64 --decode > ca.crt export CA="ca.crt" ./release.sh deriv-com ${{ github.ref_name }} diff --git a/.github/workflows/production-row.yml b/.github/workflows/production-row.yml index c19e4455880..73b48b9c651 100644 --- a/.github/workflows/production-row.yml +++ b/.github/workflows/production-row.yml @@ -126,7 +126,7 @@ jobs: run: | git clone https://github.com/binary-com/devops-ci-scripts cd devops-ci-scripts/k8s-build_tools - echo "${{ env.CA_CRT }}" | base64 --decode > ca.crt + echo "$CA_CRT" | base64 --decode > ca.crt export CA="ca.crt" ./release.sh deriv-com ${{ github.ref_name }} diff --git a/.github/workflows/staging-eu.yml b/.github/workflows/staging-eu.yml index 8025b513cfb..f51e0c93a2e 100644 --- a/.github/workflows/staging-eu.yml +++ b/.github/workflows/staging-eu.yml @@ -90,7 +90,7 @@ jobs: run: | git clone https://github.com/binary-com/devops-ci-scripts cd devops-ci-scripts/k8s-build_tools - echo "${{ env.CA_CRT }}" | base64 --decode > ca.crt + echo "$CA_CRT" | base64 --decode > ca.crt export CA="ca.crt" ./release.sh deriv-com ${GITHUB_SHA} diff --git a/.github/workflows/staging-row.yml b/.github/workflows/staging-row.yml index a1f42e5aaa3..37c41a66785 100644 --- a/.github/workflows/staging-row.yml +++ b/.github/workflows/staging-row.yml @@ -90,7 +90,7 @@ jobs: run: | git clone https://github.com/binary-com/devops-ci-scripts cd devops-ci-scripts/k8s-build_tools - echo "${{ env.CA_CRT }}" | base64 --decode > ca.crt + echo "$CA_CRT" | base64 --decode > ca.crt export CA="ca.crt" ./release.sh deriv-com ${GITHUB_SHA}