Skip to content

Commit d9a7eea

Browse files
authored
Add extra sensitive files to cleanup (#217)
* Ensure auth.json is excluded from builds. * Include build, not just bundle
1 parent eb72716 commit d9a7eea

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Commands/BundleCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ private function addFilesToZip(ZipArchive $zip): void
236236
'build', // Compiled box assets
237237
'temp', // Temp files
238238
'tests', // Tests
239+
'auth.json', // Composer auth file
239240
])
240241
->exclude(config('nativephp.cleanup_exclude_files', []));
241242

src/Traits/CopiesToBuildDirectory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ abstract protected function sourcePath(string $path = ''): string;
3434
'**/.github',
3535

3636
// Potentially containing sensitive info
37+
'auth.json', // Composer auth file
3738
'database/*.sqlite',
3839
'database/*.sqlite-shm',
3940
'database/*.sqlite-wal',

0 commit comments

Comments
 (0)