@netlify/build 29.16.1 → 29.16.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,7 +63,7 @@ export function getSecretKeysToScanFor(env, secretKeys) {
63
63
  * @returns string[] of relative paths from base of files that should be searched
64
64
  */
65
65
  export async function getFilePathsToScan({ env, base }) {
66
- const omitPathsAlways = ['.git'];
66
+ const omitPathsAlways = ['.git/'];
67
67
  // node modules is dense and is only useful to scan if the repo itself commits these
68
68
  // files. As a simple check to understand if the repo would commit these files, we expect
69
69
  // that they would not ignore them from their git settings. So if gitignore includes
@@ -91,10 +91,10 @@ export async function getFilePathsToScan({ env, base }) {
91
91
  let omitPaths = [];
92
92
  if (typeof env.SECRETS_SCAN_OMIT_PATHS === 'string') {
93
93
  omitPaths = env.SECRETS_SCAN_OMIT_PATHS.split(',')
94
- .concat(omitPathsAlways)
95
94
  .map((s) => s.trim())
96
95
  .filter(Boolean);
97
96
  }
97
+ omitPaths = omitPaths.concat(omitPathsAlways);
98
98
  if (omitPaths.length > 0) {
99
99
  files = files.filter((relativePath) => !omitPathMatches(relativePath, omitPaths));
100
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "29.16.1",
3
+ "version": "29.16.3",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/core/main.js",
@@ -65,7 +65,7 @@
65
65
  "@bugsnag/js": "^7.0.0",
66
66
  "@honeycombio/opentelemetry-node": "^0.4.0",
67
67
  "@netlify/cache-utils": "^5.1.5",
68
- "@netlify/config": "^20.6.0",
68
+ "@netlify/config": "^20.6.2",
69
69
  "@netlify/edge-bundler": "8.16.4",
70
70
  "@netlify/framework-info": "^9.8.10",
71
71
  "@netlify/functions-utils": "^5.2.18",
@@ -148,5 +148,5 @@
148
148
  "module": "commonjs"
149
149
  }
150
150
  },
151
- "gitHead": "6cd25aebae914d1eb6e6dbae9bc95c49c734a588"
151
+ "gitHead": "487f1b282fed53beeb3ea17db151a741535ba8fc"
152
152
  }