Skip to content

Commit c7ea044

Browse files
committed
3pl guard exception
1 parent ec39f5f commit c7ea044

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/3pl-guard.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,14 @@ jobs:
123123
per_page: 100,
124124
});
125125
126-
// Ignore package.json under test fixtures (e.g. e2e workspace-detection fixtures)
127-
const isTestFixtureManifest = (filename) =>
128-
filename.endsWith('package.json') &&
129-
filename.includes('/test/') &&
130-
filename.includes('/fixtures/');
126+
// Exclude package.json under test/fixtures/ (e.g. e2e workspace-detection fixtures)
127+
const isUnderTestFixtures = (filename) =>
128+
filename.includes('/test/') && filename.includes('/fixtures/');
131129
const changedPackageJsonFiles = files
132130
.map((file) => file.filename)
133-
.filter((filename) => filename.endsWith('package.json') && !isTestFixtureManifest(filename));
131+
.filter((filename) =>
132+
filename.endsWith('package.json') && !isUnderTestFixtures(filename),
133+
);
134134
135135
const findings = [];
136136
@@ -205,4 +205,4 @@ jobs:
205205
await addLabel(reviewLabel);
206206
core.setFailed(
207207
`Net-new third-party dependencies found: ${allNetNewDeps.join(', ')}. Add \`${approvalLabel}\` after review.`,
208-
);
208+
);

0 commit comments

Comments
 (0)