fix(ci): add GITHUB_TOKEN to ShellCheck step to avoid rate limits#5053
fix(ci): add GITHUB_TOKEN to ShellCheck step to avoid rate limits#5053zdrapela wants to merge 1 commit into
Conversation
The shellcheck npm package downloads the ShellCheck binary from GitHub releases at runtime. Without authentication, GitHub API requests hit the 60 req/hr rate limit on shared runner IPs, causing intermittent 403 errors. This was already fixed in bash-e2e-lint.yaml (PR redhat-developer#4049) but was not carried over when the ShellCheck step was added to e2e-tests-lint.yaml in PR redhat-developer#5002. Assisted-by: OpenCode
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5053 +/- ##
==========================================
- Coverage 55.39% 54.77% -0.62%
==========================================
Files 122 110 -12
Lines 2365 2147 -218
Branches 563 513 -50
==========================================
- Hits 1310 1176 -134
+ Misses 1048 970 -78
+ Partials 7 1 -6
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
PR Summary by QodoCI: pass GITHUB_TOKEN to ShellCheck to prevent GitHub API rate limiting
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Unscoped token permissions
|



The
shellchecknpm package downloads the ShellCheck binary from GitHub releases at runtime. Without authentication, GitHub API requests hit the 60 req/hr rate limit on shared runner IPs, causing intermittent 403 errors.This was already fixed in
bash-e2e-lint.yaml(#4049) but was not carried over when the ShellCheck step was added toe2e-tests-lint.yamlin #5002.