Skip to content

Commit

Permalink
build: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
bugale committed Sep 13, 2024
1 parent bbfa4f8 commit 9262334
Show file tree
Hide file tree
Showing 3 changed files with 941 additions and 711 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
pull_request:
branches:
- main
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
Expand All @@ -13,7 +16,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup Dependencies
run: npm install -g semantic-release semantic-release-major-tag
- name: Release
if: github.event_name == 'push'
run: npx semantic-release
- name: Release Dry Run
if: github.event_name == 'pull_request'
run: npx semantic-release --dry-run
34 changes: 23 additions & 11 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1902,7 +1902,7 @@ class HttpClient {
}
const usingSsl = parsedUrl.protocol === 'https:';
proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && {
token: `${proxyUrl.username}:${proxyUrl.password}`
token: `Basic ${Buffer.from(`${proxyUrl.username}:${proxyUrl.password}`).toString('base64')}`
})));
this._proxyAgentDispatcher = proxyAgent;
if (usingSsl && this._ignoreSslError) {
Expand Down Expand Up @@ -2016,11 +2016,11 @@ function getProxyUrl(reqUrl) {
})();
if (proxyVar) {
try {
return new URL(proxyVar);
return new DecodedURL(proxyVar);
}
catch (_a) {
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
return new URL(`http://${proxyVar}`);
return new DecodedURL(`http://${proxyVar}`);
}
}
else {
Expand Down Expand Up @@ -2079,6 +2079,19 @@ function isLoopbackAddress(host) {
hostLower.startsWith('[::1]') ||
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
}
class DecodedURL extends URL {
constructor(url, base) {
super(url, base);
this._decodedUsername = decodeURIComponent(super.username);
this._decodedPassword = decodeURIComponent(super.password);
}
get username() {
return this._decodedUsername;
}
get password() {
return this._decodedPassword;
}
}
//# sourceMappingURL=proxy.js.map

/***/ }),
Expand Down Expand Up @@ -29206,7 +29219,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports._testExports = exports.createSummary = exports.addComments = exports.getRegexParser = exports.getKnownParser = exports.generateSarif = void 0;
exports._testExports = void 0;
exports.generateSarif = generateSarif;
exports.getKnownParser = getKnownParser;
exports.getRegexParser = getRegexParser;
exports.addComments = addComments;
exports.createSummary = createSummary;
const github_1 = __nccwpck_require__(5438);
const core_1 = __nccwpck_require__(2186);
const path_1 = __importDefault(__nccwpck_require__(1017));
Expand Down Expand Up @@ -29327,19 +29345,16 @@ function generateSarif(issues, identifier, analysisPath) {
runs: [{ tool: { driver: { name: identifier, rules } }, results }]
};
}
exports.generateSarif = generateSarif;
function getKnownParser(identifier) {
const parser = knownParsers[identifier];
if (parser == null) {
throw new Error(`Unrecognized: ${identifier}`);
}
return parser;
}
exports.getKnownParser = getKnownParser;
function getRegexParser(regex, levelMap) {
return (input) => parseRegex(input, regex, levelMap);
}
exports.getRegexParser = getRegexParser;
async function addComments(issues, githubToken, identifier, owner, repo, prNumber, analysisPath) {
/* eslint camelcase: ["error", {allow: ['^pull_number$', '^comment_id$', '^start_side$', '^start_line$']}] */
const octokit = (0, github_1.getOctokit)(githubToken);
Expand Down Expand Up @@ -29413,7 +29428,6 @@ async function addComments(issues, githubToken, identifier, owner, repo, prNumbe
await octokit.rest.pulls.createReview({ owner, repo, pull_number: prNumber, event: 'COMMENT', comments });
(0, core_1.debug)('Sent comments');
}
exports.addComments = addComments;
async function createSummary(issues, identifier, analysisPath) {
const table = [
[
Expand All @@ -29439,7 +29453,6 @@ async function createSummary(issues, identifier, analysisPath) {
}
await core_1.summary.write();
}
exports.createSummary = createSummary;
exports._testExports = {
normalizePath
};
Expand Down Expand Up @@ -31341,7 +31354,7 @@ var __webpack_exports__ = {};
var exports = __webpack_exports__;

Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.run = void 0;
exports.run = run;
const fs_1 = __nccwpck_require__(7147);
const github_1 = __nccwpck_require__(5438);
const core_1 = __nccwpck_require__(2186);
Expand Down Expand Up @@ -31386,7 +31399,6 @@ async function run() {
}
}
}
exports.run = run;
void run().finally(() => { });

})();
Expand Down
Loading

0 comments on commit 9262334

Please sign in to comment.