Skip to content

fix: use pnpm pack instead of tar for RL scanner artifact - #2826

Merged
Piyush-85 merged 2 commits into
mainfrom
copilot/fix-rl-scanner-job
Aug 28, 2026
Merged

fix: use pnpm pack instead of tar for RL scanner artifact#2826
Piyush-85 merged 2 commits into
mainfrom
copilot/fix-rl-scanner-job

Conversation

Copilot AI commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

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: Replace tar -czvf "$ARTIFACT_NAME" * with pnpm pack, which respects the "files": ["dist"] declaration in package.json and produces only the compiled output
# Before — entire workspace (~186 MB)
tar -czvf "$ARTIFACT_NAME" *

# After — dist/ only, matching what gets published to npm
pnpm pack --pack-destination .
mv *.tgz "$ARTIFACT_NAME"

This also aligns the scanned artifact with what actually ships to consumers.

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
Copilot AI requested a review from nandan-bhat August 28, 2026 12:06
@Piyush-85
Piyush-85 marked this pull request as ready for review August 28, 2026 12:13
@Piyush-85
Piyush-85 requested a review from a team as a code owner August 28, 2026 12:13
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.06%. Comparing base (42a81f4) to head (039cdf2).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Piyush-85
Piyush-85 merged commit 0f998bc into main Aug 28, 2026
8 checks passed
@Piyush-85
Piyush-85 deleted the copilot/fix-rl-scanner-job branch August 28, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants