From 45f4e323c1c1d64e6025a68fa06efcb827f9ecd5 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sun, 26 Jan 2020 12:14:56 +1100 Subject: [PATCH] Inline token --- .github/codecov-upstream.yml | 12 ------------ .github/workflows/build-and-test.yml | 8 ++------ 2 files changed, 2 insertions(+), 18 deletions(-) delete mode 100644 .github/codecov-upstream.yml diff --git a/.github/codecov-upstream.yml b/.github/codecov-upstream.yml deleted file mode 100644 index b62032bfb..000000000 --- a/.github/codecov-upstream.yml +++ /dev/null @@ -1,12 +0,0 @@ -# Documentation: https://docs.codecov.io/docs/codecov-yaml - -codecov: - # Avoid "Missing base report" - # https://github.com/codecov/support/issues/363 - # https://docs.codecov.io/docs/comparing-commits - allow_coverage_offsets: true - - # Avoid "Please provide the repository token to upload reports via `-t :repository-token`" - # https://community.codecov.io/t/whitelist-github-action-servers-to-upload-without-a-token/491/10 - # https://github.community/t5/GitHub-Actions/Make-secrets-available-to-builds-of-forks/m-p/42814/highlight/true#M5129 - token: 0ef021c7-2679-4012-b42f-4bed33d99450 diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 5698f549a..d76d68c1a 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -88,15 +88,11 @@ jobs: # Avoid "Please provide the repository token to upload reports via `-t :repository-token`" # https://community.codecov.io/t/whitelist-github-action-servers-to-upload-without-a-token/491/10 # https://github.community/t5/GitHub-Actions/Make-secrets-available-to-builds-of-forks/m-p/42814/highlight/true#M5129 - - name: Prepare Codecov Token - if: matrix.options.codecov == true && github.repository == 'SixLabors/ImageSharp' - run: cp .github/codecov-upstream.yml .codecov.yml - - name: Update Codecov uses: iansu/codecov-action-node@v1.0.0 - if: matrix.options.codecov == true + if: matrix.options.codecov == true && startsWith(github.repository, 'SixLabors') with: - token: ${{secrets.CODECOV_TOKEN}} + token: 0ef021c7-2679-4012-b42f-4bed33d99450 flags: unittests Publish: