Skip to content

Commit

Permalink
⬆️ Bump the npm-production group with 2 updates
Browse files Browse the repository at this point in the history
Bumps the npm-production group with 2 updates: [@actions/artifact](https://github.com/actions/toolkit/tree/HEAD/packages/artifact) and [@octokit/webhooks](https://github.com/octokit/webhooks.js).

Updates `@actions/artifact` from 2.1.6 to 2.1.7
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/artifact/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/artifact)

Updates `@octokit/webhooks` from 13.2.5 to 13.2.6
- [Release notes](https://github.com/octokit/webhooks.js/releases)
- [Commits](octokit/webhooks.js@v13.2.5...v13.2.6)

---
updated-dependencies:
- dependency-name: "@actions/artifact"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-production
- dependency-name: "@octokit/webhooks"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: npm-production
...

Signed-off-by: dependabot[bot] <[email protected]>

:arrow_up: Bump @octokit/plugin-paginate-rest from 11.2.0 to 11.3.0

Bumps [@octokit/plugin-paginate-rest](https://github.com/octokit/plugin-paginate-rest.js) from 11.2.0 to 11.3.0.
- [Release notes](https://github.com/octokit/plugin-paginate-rest.js/releases)
- [Commits](octokit/plugin-paginate-rest.js@v11.2.0...v11.3.0)

---
updated-dependencies:
- dependency-name: "@octokit/plugin-paginate-rest"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

:bricks: Update `scan/dist/index.js`
  • Loading branch information
dependabot[bot] authored and tiulpin committed May 2, 2024
1 parent 348e594 commit 469f04d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 72 deletions.
50 changes: 25 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 5 additions & 46 deletions scan/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91970,7 +91970,7 @@ var require_package = __commonJS({
"../node_modules/@actions/artifact/package.json"(exports2, module2) {
module2.exports = {
name: "@actions/artifact",
version: "2.1.6",
version: "2.1.7",
preview: true,
description: "Actions artifact lib",
keywords: [
Expand Down Expand Up @@ -123455,9 +123455,6 @@ var require_download_artifact = __commonJS({
Object.defineProperty(exports2, "__esModule", { value: true });
exports2.downloadArtifactInternal = exports2.downloadArtifactPublic = exports2.streamExtractExternal = void 0;
var promises_1 = __importDefault2(require("fs/promises"));
var stream = __importStar3(require("stream"));
var fs_1 = require("fs");
var path = __importStar3(require("path"));
var github2 = __importStar3(require_github2());
var core2 = __importStar3(require_core());
var httpClient = __importStar3(require_lib());
Expand All @@ -123473,10 +123470,10 @@ var require_download_artifact = __commonJS({
parsed.search = "";
return parsed.toString();
}, "scrubQueryParameters");
function exists(path2) {
function exists(path) {
return __awaiter3(this, void 0, void 0, function* () {
try {
yield promises_1.default.access(path2);
yield promises_1.default.access(path);
return true;
} catch (error) {
if (error.code === "ENOENT") {
Expand All @@ -123496,9 +123493,6 @@ var require_download_artifact = __commonJS({
yield streamExtractExternal(url, directory);
return;
} catch (error) {
if (error.message.includes("Malformed extraction path")) {
throw new Error(`Artifact download failed with unretryable error: ${error.message}`);
}
retryCount++;
core2.debug(`Failed to download artifact after ${retryCount} retries due to ${error.message}. Retrying in 5 seconds...`);
yield new Promise((resolve) => setTimeout(resolve, 5e3));
Expand All @@ -123521,51 +123515,16 @@ var require_download_artifact = __commonJS({
response.message.destroy(new Error(`Blob storage chunk did not respond in ${timeout}ms`));
}, "timerFn");
const timer = setTimeout(timerFn, timeout);
const createdDirectories = /* @__PURE__ */ new Set();
createdDirectories.add(directory);
response.message.on("data", () => {
timer.refresh();
}).on("error", (error) => {
core2.debug(`response.message: Artifact download failed: ${error.message}`);
clearTimeout(timer);
reject(error);
}).pipe(unzip_stream_1.default.Parse()).pipe(new stream.Transform({
objectMode: true,
transform: (entry, _2, callback) => __awaiter3(this, void 0, void 0, function* () {
const fullPath = path.normalize(path.join(directory, entry.path));
if (!directory.endsWith(path.sep)) {
directory += path.sep;
}
if (!fullPath.startsWith(directory)) {
reject(new Error(`Malformed extraction path: ${fullPath}`));
}
if (entry.type === "Directory") {
if (!createdDirectories.has(fullPath)) {
createdDirectories.add(fullPath);
yield resolveOrCreateDirectory(fullPath).then(() => {
entry.autodrain();
callback();
});
} else {
entry.autodrain();
callback();
}
} else {
core2.info(`Extracting artifact entry: ${fullPath}`);
if (!createdDirectories.has(path.dirname(fullPath))) {
createdDirectories.add(path.dirname(fullPath));
yield resolveOrCreateDirectory(path.dirname(fullPath));
}
const writeStream = (0, fs_1.createWriteStream)(fullPath);
writeStream.on("finish", callback);
writeStream.on("error", reject);
entry.pipe(writeStream);
}
})
})).on("finish", () => __awaiter3(this, void 0, void 0, function* () {
}).pipe(unzip_stream_1.default.Extract({ path: directory })).on("close", () => {
clearTimeout(timer);
resolve();
})).on("error", (error) => {
}).on("error", (error) => {
reject(error);
});
});
Expand Down
2 changes: 1 addition & 1 deletion scan/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"url": "git+https://github.com/JetBrains/qodana-action.git"
},
"dependencies": {
"@actions/artifact": "^2.1.5",
"@actions/artifact": "^2.1.7",
"@actions/cache": "^3.2.4",
"@actions/core": "^1.10.1",
"@actions/exec": "^1.1.0",
Expand Down

0 comments on commit 469f04d

Please sign in to comment.