Skip to content

ci: remove unnecessary checkout in dependency diff job#153

Closed
yoshi-taka wants to merge 1 commit intoe18e:mainfrom
yoshi-taka:patch-1
Closed

ci: remove unnecessary checkout in dependency diff job#153
yoshi-taka wants to merge 1 commit intoe18e:mainfrom
yoshi-taka:patch-1

Conversation

@yoshi-taka
Copy link
Copy Markdown
Contributor

Dependency diff runs in artifact mode and compares packed .tgz files, so repository checkout (and full history fetch) is not required.

Dependency diff runs in artifact mode and compares packed .tgz files,
so repository checkout (and full history fetch) is not required.
@43081j
Copy link
Copy Markdown
Contributor

43081j commented Apr 26, 2026

the rest of the analysis is over the lock files, though. so we need this to fetch the lock file from main, no?

basically this:

const basePackageLock = getFileFromRef(baseRef, lockfilePath, baseWorkspace);
if (!basePackageLock) {
core.info('No package lockfile found in base ref');
return;
}

the comment action that consumes the artifact already skips checkout

@yoshi-taka
Copy link
Copy Markdown
Contributor Author

Ah, this seems to be the key part.

detectLockfile(workspacePath) only checks for lockfiles directly in the workspace via existsSync(join(workspacePath, c)). It does not inspect the downloaded package artifacts.

So even in mode: artifact, the analyze step still needs a checked-out workspace with a lockfile before it can proceed to the package artifact comparison.

Apologies. I initially misunderstood how this part works.

@yoshi-taka yoshi-taka closed this Apr 27, 2026
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.

2 participants