Commit b310eec
authored
skip codecov upload on Dependabot PRs (#1425)
Dependabot PRs run in a sandboxed environment without access to
repository secrets, so `CODECOV_TOKEN` is unavailable and the codecov
upload fails with:
```
Upload queued for processing failed: {"message":"Token required because branch is protected"}
```
This adds `if: github.actor != 'dependabot[bot]'` to each
`codecov/codecov-action` step so the upload is skipped for Dependabot
PRs. No coverage changes are expected from dependency bumps, so this is
safe.
Automated by
[dependabot-config-bot](https://github.com/shravangoswami-bot/dependabot-config-bot).
Co-authored-by: shravangoswami-bot <shravangoswami-bot@users.noreply.github.com>1 parent 173defb commit b310eec
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
| 131 | + | |
129 | 132 | | |
130 | 133 | | |
131 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
0 commit comments