Skip to content

Commit c67ccb8

Browse files
committed
fix: security
1 parent 2d4a27b commit c67ccb8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Commands/BundleCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ private function checkComposerJson(): bool
122122

123123
return false;
124124
}
125+
// Work with private packages but will not in the future
125126
// elseif ($repository['type'] === 'composer') {
126127
// if (! $this->checkComposerPackageAuth($repository['url'])) {
127128
// $this->error('Cannot authenticate with '.$repository['url'].'.');
@@ -170,7 +171,8 @@ private function addFilesToZip(ZipArchive $zip): void
170171
$zip->addFile(base_path('.env'), '.env');
171172

172173
// Add auth.json file to support private packages
173-
$zip->addFile(base_path('auth.json'), 'auth.json');
174+
// WARNING: Only for testing purposes, don't uncomment this
175+
// $zip->addFile(base_path('auth.json'), 'auth.json');
174176

175177
// Custom binaries
176178
$binaryPath = Str::replaceStart(base_path('vendor'), '', config('nativephp.binary_path'));

0 commit comments

Comments
 (0)