Commit f179829
committed
Prevent unnecessary GitHub API request
In order to access information about private repositories via the GitHub API, a GitHub access token is required.
The only use of the GitHub API by the action is in determining the base ref of the pull request to use for reporting size deltas.
A change was inadvertently made that caused this GitHub API request to be made every time the action was run, even when size deltas reporting was disabled. This resulted in the action failing when triggered from a private repository when the github-token input was not provided by the workflow.1 parent 882d768 commit f179829
File tree
2 files changed
+12
-3
lines changed- compilesketches
- tests
2 files changed
+12
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | 129 | | |
132 | 130 | | |
133 | 131 | | |
134 | 132 | | |
135 | 133 | | |
136 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
137 | 142 | | |
138 | 143 | | |
139 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
211 | 215 | | |
212 | 216 | | |
213 | 217 | | |
| |||
1443 | 1447 | | |
1444 | 1448 | | |
1445 | 1449 | | |
1446 | | - | |
| 1450 | + | |
1447 | 1451 | | |
1448 | 1452 | | |
1449 | 1453 | | |
| |||
0 commit comments