Skip to content

Commit

Permalink
Remove codecov token (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
klvmungai authored Apr 16, 2021
1 parent 3016bbf commit 9789450
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9789450

Please sign in to comment.