Skip to content

Commit ff1ad36

Browse files
committed
Publish token for arduino-cli main repo.
PRs from forks do not have access to repository secrets. The same intermittent spurious workflow run failures will continue to occur for PRs from forks. https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954 > Public repositories that rely on PRs via forks will find that they cannot effectively > use Codecov if the token is stored as a GitHub secret. The scope of the Codecov token > is only to confirm that the coverage uploaded comes from a specific repository, not to > pull down source code or make any code changes. > > For this reason, we recommend that teams with public repositories that rely on PRs via > forks consider the security ramifications of making the Codecov token available as > opposed to being in a secret. > > 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.
1 parent 4372221 commit ff1ad36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: .github/workflows/test-go-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ jobs:
197197
- name: Send unit tests coverage to Codecov
198198
uses: codecov/codecov-action@v3
199199
with:
200-
token: ${{ secrets.CODECOV_TOKEN }}
200+
token: db21daa9-939e-4742-be68-a9db33b8bdcb
201201
files: ./coverage.txt
202202
flags: unit
203203
fail_ci_if_error: ${{ github.repository == 'arduino/arduino-cli' }}

0 commit comments

Comments
 (0)