Commit 637a89a
committed
ci: cache SonarScanner CLI to avoid flaky CDN download
The scan action downloads the scanner CLI from binaries.sonarsource.com on
every run, which intermittently returns HTTP 403 and fails the build. The
action checks the tool-cache first (tc.find) and only downloads on a miss, so
persisting that directory with actions/cache makes every run after the first
restore the scanner and skip the CDN entirely. scannerVersion is pinned to keep
the cache key in sync.1 parent 4408ba5 commit 637a89a
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
86 | 96 | | |
87 | | - | |
88 | | - | |
| 97 | + | |
| 98 | + | |
89 | 99 | | |
90 | 100 | | |
91 | 101 | | |
| |||
0 commit comments