From 9789450f5bdae89f104afd69bc305756fd3f6582 Mon Sep 17 00:00:00 2001 From: Kelvin Mungai Date: Sat, 17 Apr 2021 00:02:22 +0300 Subject: [PATCH] Remove codecov token (#300) --- .github/workflows/branch.yml | 2 -- .github/workflows/release.yml | 2 -- Earthfile | 3 +-- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/branch.yml b/.github/workflows/branch.yml index 4c01ff4b..50f483a7 100644 --- a/.github/workflows/branch.yml +++ b/.github/workflows/branch.yml @@ -34,8 +34,6 @@ jobs: - name: Build env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} COMMIT_HASH: ${{ github.sha }} EARTHLY_BUILD_ARGS: "BRANCH_NAME,COMMIT_HASH" - EARTHLY_SECRETS: "CODECOV_TOKEN" run: earthly -P +all diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ff4e7b1..c54a1376 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,9 +45,7 @@ jobs: - name: Build env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} COMMIT_HASH: ${{ github.sha }} VERSION: ${{ steps.version.outputs.VERSION }} EARTHLY_BUILD_ARGS: "BRANCH_NAME,COMMIT_HASH,VERSION" - EARTHLY_SECRETS: "CODECOV_TOKEN" run: earthly -P --push +all diff --git a/Earthfile b/Earthfile index 6ce9ab96..f5ec63ac 100644 --- a/Earthfile +++ b/Earthfile @@ -78,8 +78,7 @@ codecov: ARG BRANCH_NAME="" ARG BUILD_NUMBER="" RUN curl -s https://codecov.io/bash > codecov.sh && chmod +x codecov.sh - RUN --secret CODECOV_TOKEN=+secrets/CODECOV_TOKEN \ - ./codecov.sh -t "${CODECOV_TOKEN}" -B "${BRANCH_NAME}" -C "${COMMIT_HASH}" -b "${BUILD_NUMBER}" + RUN ./codecov.sh -B "${BRANCH_NAME}" -C "${COMMIT_HASH}" -b "${BUILD_NUMBER}" test-all: BUILD +test-local