From 3fde81ca7046ed8f443ad9dedfad3fc5ad67225f Mon Sep 17 00:00:00 2001 From: Xiangjing Li <55890329+xiangjingli@users.noreply.github.com> Date: Thu, 25 Apr 2024 14:26:26 -0400 Subject: [PATCH] move codeCov token to action secrets for better security (#394) Signed-off-by: Xiangjing Li --- .github/workflows/go-postsubmit.yml | 2 +- .github/workflows/go-presubmit.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go-postsubmit.yml b/.github/workflows/go-postsubmit.yml index 2bf3cb0a..9c26447d 100644 --- a/.github/workflows/go-postsubmit.yml +++ b/.github/workflows/go-postsubmit.yml @@ -34,7 +34,7 @@ jobs: - name: report-coverage uses: codecov/codecov-action@v4 with: - token: 499fda0d-574a-439f-bc75-b591085753c8 + token: ${{ secrets.CODECOV_TOKEN }} files: /home/runner/work/multicloud-operators-subscription/multicloud-operators-subscription/go/src/github.com/open-cluster-management/multicloud-operators-subscription/coverage.out,/home/runner/work/multicloud-operators-subscription/multicloud-operators-subscription/go/src/github.com/open-cluster-management/multicloud-operators-subscription/addon_coverage.out flags: unit name: unit diff --git a/.github/workflows/go-presubmit.yml b/.github/workflows/go-presubmit.yml index 436676bd..2dc84d21 100644 --- a/.github/workflows/go-presubmit.yml +++ b/.github/workflows/go-presubmit.yml @@ -84,7 +84,7 @@ jobs: - name: report-coverage uses: codecov/codecov-action@v4 with: - token: 499fda0d-574a-439f-bc75-b591085753c8 + token: ${{ secrets.CODECOV_TOKEN }} files: /home/runner/work/multicloud-operators-subscription/multicloud-operators-subscription/go/src/github.com/open-cluster-management/multicloud-operators-subscription/coverage.out,/home/runner/work/multicloud-operators-subscription/multicloud-operators-subscription/go/src/github.com/open-cluster-management/multicloud-operators-subscription/addon_coverage.out flags: unit name: unit