fix: use pnpm pack instead of tar for RL scanner artifact - #2826
Merged
Conversation
Co-authored-by: nandan-bhat <167290944+nandan-bhat@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job rl-scanner
fix: use pnpm pack instead of tar for RL scanner artifact
Aug 28, 2026
Piyush-85
marked this pull request as ready for review
August 28, 2026 12:13
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2826 +/- ##
=======================================
Coverage 89.06% 89.06%
=======================================
Files 80 80
Lines 11978 11978
Branches 2501 2501
=======================================
Hits 10668 10668
Misses 1265 1265
Partials 45 45 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Piyush-85
approved these changes
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The RL scanner job was failing because the artifact being scanned was ~186 MB — the entire workspace including
node_modules,src/, and test files — exceeding the scanner's monthly analysis limit.Changes
.github/workflows/rl-secure.yml: Replacetar -czvf "$ARTIFACT_NAME" *withpnpm pack, which respects the"files": ["dist"]declaration inpackage.jsonand produces only the compiled outputThis also aligns the scanned artifact with what actually ships to consumers.