Skip to content

Commit

Permalink
Merge pull request #166 from snyk/fix/SUP-1051_azure_pipelines_cant_l…
Browse files Browse the repository at this point in the history
…ist_directory

fix: don't break on directory listing in debug mode
  • Loading branch information
bastiandoetsch authored Jul 28, 2023
2 parents 509e66f + 3fb0bde commit 8fba263
Showing 2 changed files with 28 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .circleci/.releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{"type": "docs", "release": "patch"},
{"type": "chore", "release": "patch"},
{"type": "refactor", "release": "patch"},
{"type": "style", "release": "patch"}
]
}
],
[
"@semantic-release/git",
{
"assets": [],
"message": "chore(release): ${nextRelease.version}"
}
]
]
}
8 changes: 6 additions & 2 deletions snykTask/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022 Snyk Ltd.
* Copyright 2022-2023 Snyk Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -126,7 +126,11 @@ async function showDirectoryListing(
const lsToolRunner: tr.ToolRunner = tl.tool(lsPath);
lsToolRunner.arg('-la');
lsToolRunner.argIf(dirToShow, dirToShow);
await lsToolRunner.exec(options);
try {
await lsToolRunner.exec(options);
} catch (err) {
console.log(`Error listing directory: ${err}`);
}
}

async function runSnykTest(

0 comments on commit 8fba263

Please sign in to comment.