Socket
Socket
Sign inDemoInstall

@octokit/action

Package Overview
Dependencies
Maintainers
2
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/action - npm Package Compare versions

Comparing version 3.15.6 to 3.15.7

14

dist-node/index.js

@@ -5,2 +5,4 @@ 'use strict';

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var core = require('@octokit/core');

@@ -10,3 +12,3 @@ var authAction = require('@octokit/auth-action');

var pluginRestEndpointMethods = require('@octokit/plugin-rest-endpoint-methods');
var httpsProxyAgent = require('https-proxy-agent');
var ProxyAgent = _interopDefault(require('proxy-agent'));

@@ -66,3 +68,3 @@ function ownKeys(object, enumerableOnly) {

const VERSION = "3.15.6";
const VERSION = "3.15.7";

@@ -77,3 +79,3 @@ const DEFAULTS = {

request: _objectSpread2({
agent: getHttpsProxyAgent()
agent: new ProxyAgent()
}, options.request)

@@ -88,9 +90,3 @@ });

function getHttpsProxyAgent() {
const proxy = process.env["HTTPS_PROXY"] || process.env["https_proxy"];
if (!proxy) return undefined;
return new httpsProxyAgent.HttpsProxyAgent(proxy);
}
exports.Octokit = Octokit;
//# sourceMappingURL=index.js.map

@@ -6,3 +6,3 @@ import { Octokit as Core } from "@octokit/core";

import { VERSION } from "./version";
import { HttpsProxyAgent } from "https-proxy-agent";
import ProxyAgent from "proxy-agent";
const DEFAULTS = {

@@ -18,3 +18,3 @@ authStrategy: createActionAuth,

request: {
agent: getHttpsProxyAgent(),
agent: new ProxyAgent(),
...options.request,

@@ -28,7 +28,1 @@ },

}
function getHttpsProxyAgent() {
const proxy = process.env["HTTPS_PROXY"] || process.env["https_proxy"];
if (!proxy)
return undefined;
return new HttpsProxyAgent(proxy);
}

@@ -1,1 +0,1 @@

export const VERSION = "3.15.6";
export const VERSION = "3.15.7";

@@ -1,1 +0,1 @@

export declare const VERSION = "3.15.6";
export declare const VERSION = "3.15.7";
{
"name": "@octokit/action",
"description": "GitHub API client for GitHub Actions",
"version": "3.15.6",
"version": "3.15.7",
"license": "MIT",

@@ -26,3 +26,3 @@ "files": [

"@octokit/types": "^6.16.1",
"https-proxy-agent": "^5.0.0"
"proxy-agent": "^5.0.0"
},

@@ -29,0 +29,0 @@ "devDependencies": {

@@ -131,2 +131,6 @@ # action.js

### Proxy Servers
If you use [self-hosted runners](https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners) and require a proxy server to access internet resources then you will need to ensure that you have correctly configured the runner for [proxy servers](https://docs.github.com/en/actions/hosting-your-own-runners/using-a-proxy-server-with-self-hosted-runners). `@octokit/action` will pick up the configured proxy server environment variables and configure `@octokit/core` with the correct `request.agent` using [proxy-agent](https://github.com/TooTallNate/node-proxy-agent/blob/master/index.js). If you need to supply a different `request.agent` then you should ensure that it handles proxy servers if needed.
## How it works

@@ -133,0 +137,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc