Skip to content

Commit

Permalink
tokenless codecov from forks
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Jan 31, 2024
1 parent 2e54eeb commit 4bf61f3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ defaults:
# @see https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell
shell: bash

env:
# Using upload token helps against rate limiting errors.
# Cannot define it as secret as we need it accessible from forks.
# See https://github.com/codecov/codecov-action/issues/837
CODECOV_TOKEN: 39b3f423-92e0-491b-aba0-f9b56c451c72

jobs:
test:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -73,8 +67,8 @@ jobs:
- name: Upload coverage results to Codecov
if: matrix.coverage == 'pcov'
uses: codecov/codecov-action@v4
with:
token: ${{ env.CODECOV_TOKEN }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
build-release:
runs-on: ubuntu-22.04
permissions:
Expand Down

0 comments on commit 4bf61f3

Please sign in to comment.