Skip to content

Commit

Permalink
Release v1.2.5 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubcieslik99 authored Sep 19, 2024
2 parents c4de33d + 3594247 commit c953966
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 51 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"semi": ["error"],
"quotes": ["error", "single", { "avoidEscape": true }],
"semi": ["error", "always"],
"quotes": ["error", "single"],
"arrow-parens": ["error", "as-needed"],
"no-multiple-empty-lines": ["error", { "max": 1 }]
},
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/testing - main pull request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@main
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Use latest pnpm
uses: pnpm/action-setup@master
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
# main
.pnpm-store/
node_modules/
build/

# .env
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# tests
coverage/

# logs
logs/
log/
*.log
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*

# temp directory
.temp/
.tmp/

# os
.DS_Store
31 changes: 22 additions & 9 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.OidcClient = void 0;
const http_client_1 = __nccwpck_require__(6372);
const auth_1 = __nccwpck_require__(8603);
const http_client_1 = __nccwpck_require__(6634);
const auth_1 = __nccwpck_require__(2177);
const core_1 = __nccwpck_require__(9093);
class OidcClient {
static createHttpClient(allowRetry = true, maxRetry = 10) {
Expand Down Expand Up @@ -987,7 +987,7 @@ exports.toCommandProperties = toCommandProperties;

/***/ }),

/***/ 8603:
/***/ 2177:
/***/ (function(__unused_webpack_module, exports) {


Expand Down Expand Up @@ -1074,7 +1074,7 @@ exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHand

/***/ }),

/***/ 6372:
/***/ 6634:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {


Expand Down Expand Up @@ -1115,7 +1115,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0;
const http = __importStar(__nccwpck_require__(3685));
const https = __importStar(__nccwpck_require__(5687));
const pm = __importStar(__nccwpck_require__(2067));
const pm = __importStar(__nccwpck_require__(4318));
const tunnel = __importStar(__nccwpck_require__(4225));
const undici_1 = __nccwpck_require__(7181);
var HttpCodes;
Expand Down Expand Up @@ -1640,7 +1640,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 @@ -1732,7 +1732,7 @@ const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCa

/***/ }),

/***/ 2067:
/***/ 4318:
/***/ ((__unused_webpack_module, exports) => {


Expand All @@ -1753,11 +1753,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 @@ -1816,6 +1816,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
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "secrets-vars-to-env-file-action",
"version": "1.2.4",
"version": "1.2.5",
"description": "Export GitHub secrets & vars to environment variables & specified file",
"type": "module",
"main": "build/index.js",
Expand All @@ -26,7 +26,7 @@
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vercel/ncc": "^0.38.1",
"eslint": "8.57.0",
"eslint": "8.57.1",
"eslint-config-prettier": "^9.1.0",
"jest": "^29.7.0",
"prettier": "^3.3.3",
Expand Down
68 changes: 34 additions & 34 deletions pnpm-lock.yaml

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

7 changes: 4 additions & 3 deletions test/e2e.test.ts → test/e2e/e2e.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { describe, beforeAll, beforeEach, afterEach, afterAll, test, expect } from '@jest/globals';
import fs from 'fs';
import * as core from '@actions/core';
import { mockCoreModule } from './mocks/implementations.js';
import { mockInputs, mockRunnerScriptEnvs } from './mocks/helpers.js';
import { mockCoreModule } from '../mocks/implementations.js';
import { mockInputs, mockRunnerScriptEnvs } from '../mocks/helpers.js';

describe('secrets-vars-to-env-file-action e2e', () => {
let coreModule: typeof core;
Expand Down Expand Up @@ -56,7 +57,7 @@ describe('secrets-vars-to-env-file-action e2e', () => {

test('e2e', async () => {
try {
const { default: index } = await import('../src/index.js');
const { default: index } = await import('../../src/index.js');
await index;

expect(true).toBe(true);
Expand Down

0 comments on commit c953966

Please sign in to comment.