Skip to content

Commit 3472732

Browse files
committed
testing
1 parent ef53f46 commit 3472732

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/actions/find/src/pluginManager.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,18 @@ export async function loadCustomPlugins() {
6969
const pluginsPath = path.join(process.cwd(), '.github/scanner-plugins/')
7070
console.log('plugins path', pluginsPath);
7171

72+
const cwd = process.cwd()
73+
console.log('current working directory:', cwd)
74+
const underRootPath = path.join(cwd,'..')
75+
console.log('path under root:', underRootPath)
76+
const underRoot = fs.readdirSync(underRootPath)
77+
if (Array.isArray(underRoot)) {
78+
underRoot.forEach(element => {
79+
console.log('file under root:', element)
80+
});
81+
}
82+
83+
7284
const fileNames = fs.readdirSync(process.cwd())
7385
fileNames.forEach((fn: string) => {
7486
console.log('file in cwd:', fn)

0 commit comments

Comments
 (0)