From 03d15d0a3edfcd8b3d3f97ec6adce5c458bb1037 Mon Sep 17 00:00:00 2001 From: Xiangjing Li <55890329+xiangjingli@users.noreply.github.com> Date: Thu, 25 Apr 2024 14:02:45 -0400 Subject: [PATCH] move codeCov token to action secrets for better security (#83) 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 eabd9ef..b929041 100644 --- a/.github/workflows/go-postsubmit.yml +++ b/.github/workflows/go-postsubmit.yml @@ -36,7 +36,7 @@ jobs: - name: report-coverage uses: codecov/codecov-action@v4 with: - token: 0718e448-c0d1-4aa1-87dd-6761e6a5a587 + token: ${{ secrets.CODECOV_TOKEN }} files: /home/runner/work/multicloud-operators-channel/multicloud-operators-channel/go/src/open-cluster-management.io/multicloud-operators-channel/coverage.out flags: unit name: unit diff --git a/.github/workflows/go-presubmit.yml b/.github/workflows/go-presubmit.yml index 77c6b5c..429f68e 100644 --- a/.github/workflows/go-presubmit.yml +++ b/.github/workflows/go-presubmit.yml @@ -86,7 +86,7 @@ jobs: - name: report-coverage uses: codecov/codecov-action@v4 with: - token: 0718e448-c0d1-4aa1-87dd-6761e6a5a587 + token: ${{ secrets.CODECOV_TOKEN }} files: /home/runner/work/multicloud-operators-channel/multicloud-operators-channel/go/src/open-cluster-management.io/multicloud-operators-channel/coverage.out flags: unit name: unit