diff --git a/.github/workflows/dashboards-reports-test-and-build-workflow.yml b/.github/workflows/dashboards-reports-test-and-build-workflow.yml index 6e1ad9dc..fe51bf88 100644 --- a/.github/workflows/dashboards-reports-test-and-build-workflow.yml +++ b/.github/workflows/dashboards-reports-test-and-build-workflow.yml @@ -6,7 +6,6 @@ env: PLUGIN_NAME: reportsDashboards OPENSEARCH_VERSION: '1.0' OPENSEARCH_PLUGIN_VERSION: 1.0.0.0-rc1 - CODECOV_TOKEN: '50c9356f-775f-472c-bcfb-2094fc71819c' jobs: build: @@ -50,14 +49,14 @@ jobs: with: timeout_minutes: 30 max_attempts: 3 - command: cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}; yarn test + command: cd OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}; yarn test --coverage - name: Upload coverage uses: codecov/codecov-action@v1 with: flags: dashboards-reports directory: OpenSearch-Dashboards/plugins/ - token: ${{ env.CODECOV_TOKEN }} + token: ${{ secrets.CODECOV_TOKEN }} - name: Build Artifact run: | diff --git a/.github/workflows/reports-scheduler-test-and-build-workflow.yml b/.github/workflows/reports-scheduler-test-and-build-workflow.yml index 6f86251e..1785064c 100644 --- a/.github/workflows/reports-scheduler-test-and-build-workflow.yml +++ b/.github/workflows/reports-scheduler-test-and-build-workflow.yml @@ -2,8 +2,6 @@ name: Test and Build Reports Scheduler on: [push, pull_request] -env: - CODECOV_TOKEN: '50c9356f-775f-472c-bcfb-2094fc71819c' jobs: build: @@ -62,7 +60,7 @@ jobs: with: flags: reports-scheduler directory: reports-scheduler/ - token: ${{ env.CODECOV_TOKEN }} + token: ${{ secrets.CODECOV_TOKEN }} - name: Create Artifact Path run: |