Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ jobs:
uses: codecov/codecov-action@v3
with:
directory: empty
name: 'Windows (${{ matrix.python }}, ${{ matrix.arch }}${{ matrix.extra_name }})'
token: 87cefb17-c44b-4f2f-8b30-1fff5769ce46
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@A5rocks from the link you provided:

A malicious actor would be able to upload incorrect or misleading coverage reports to a specific repository if they have access to your upload token, but would not be able to pull down source code or make any code changes.

So with that in mind, I'd suggest using repository secrets to store an actual token instead of displaying it publicly.

Here, it'd look like

Suggested change
token: 87cefb17-c44b-4f2f-8b30-1fff5769ce46
token: ${{ secrets.CODECOV_TOKEN }}

and it'd be sanitized in the logs, addressing said problem.

Though, somebody should probably revoke/reset the token exposed here. I suppose only @njsmith can add repo secrets?

name: Windows (${{ matrix.python }}, ${{ matrix.arch }}${{ matrix.extra_name }})
flags: Windows,${{ matrix.python }}

Ubuntu:
Expand Down Expand Up @@ -131,7 +132,8 @@ jobs:
uses: codecov/codecov-action@v3
with:
directory: empty
name: 'Ubuntu (${{ matrix.python }}${{ matrix.extra_name }})'
token: 87cefb17-c44b-4f2f-8b30-1fff5769ce46
name: Ubuntu (${{ matrix.python }}${{ matrix.extra_name }})
flags: Ubuntu,${{ matrix.python }}

macOS:
Expand Down Expand Up @@ -166,7 +168,8 @@ jobs:
uses: codecov/codecov-action@v3
with:
directory: empty
name: 'macOS (${{ matrix.python }})'
token: 87cefb17-c44b-4f2f-8b30-1fff5769ce46
name: macOS (${{ matrix.python }})
flags: macOS,${{ matrix.python }}

# https://github.com/marketplace/actions/alls-green#why
Expand Down