Skip to content

Commit 8fba263

Browse files
Merge pull request #166 from snyk/fix/SUP-1051_azure_pipelines_cant_list_directory
fix: don't break on directory listing in debug mode
2 parents 509e66f + 3fb0bde commit 8fba263

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.circleci/.releaserc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"plugins": [
3+
[
4+
"@semantic-release/commit-analyzer",
5+
{
6+
"releaseRules": [
7+
{"type": "docs", "release": "patch"},
8+
{"type": "chore", "release": "patch"},
9+
{"type": "refactor", "release": "patch"},
10+
{"type": "style", "release": "patch"}
11+
]
12+
}
13+
],
14+
[
15+
"@semantic-release/git",
16+
{
17+
"assets": [],
18+
"message": "chore(release): ${nextRelease.version}"
19+
}
20+
]
21+
]
22+
}

snykTask/src/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 Snyk Ltd.
2+
* Copyright 2022-2023 Snyk Ltd.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -126,7 +126,11 @@ async function showDirectoryListing(
126126
const lsToolRunner: tr.ToolRunner = tl.tool(lsPath);
127127
lsToolRunner.arg('-la');
128128
lsToolRunner.argIf(dirToShow, dirToShow);
129-
await lsToolRunner.exec(options);
129+
try {
130+
await lsToolRunner.exec(options);
131+
} catch (err) {
132+
console.log(`Error listing directory: ${err}`);
133+
}
130134
}
131135

132136
async function runSnykTest(

0 commit comments

Comments
 (0)