Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jamesives/github-pages-deploy-action

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jamesives/github-pages-deploy-action - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1

8

__tests__/git.test.ts

@@ -58,3 +58,3 @@ // Initial env variable setup for tests.

await init(action)
expect(execute).toBeCalledTimes(6)
expect(execute).toBeCalledTimes(7)
})

@@ -106,3 +106,3 @@

await init(action)
expect(execute).toBeCalledTimes(6)
expect(execute).toBeCalledTimes(7)
})

@@ -129,3 +129,3 @@

await init(action)
expect(execute).toBeCalledTimes(5)
expect(execute).toBeCalledTimes(6)

@@ -151,3 +151,3 @@ process.env.CI = undefined

await init(action)
expect(execute).toBeCalledTimes(6)
expect(execute).toBeCalledTimes(7)
})

@@ -154,0 +154,0 @@ })

@@ -56,3 +56,3 @@ // Initial env variable setup for tests.

await run(action)
expect(execute).toBeCalledTimes(16)
expect(execute).toBeCalledTimes(17)
expect(rmRF).toBeCalledTimes(1)

@@ -77,3 +77,3 @@ expect(exportVariable).toBeCalledTimes(1)

await run(action)
expect(execute).toBeCalledTimes(19)
expect(execute).toBeCalledTimes(20)
expect(rmRF).toBeCalledTimes(1)

@@ -80,0 +80,0 @@ expect(exportVariable).toBeCalledTimes(1)

@@ -29,2 +29,8 @@ "use strict";

(0, core_1.info)('Configuring git…');
try {
yield (0, execute_1.execute)(`git config --global --add safe.directory "${action.workspace}"`, action.workspace, action.silent);
}
catch (_a) {
(0, core_1.info)('Unable to set workspace as a safe directory…');
}
yield (0, execute_1.execute)(`git config user.name "${action.name}"`, action.workspace, action.silent);

@@ -44,3 +50,3 @@ yield (0, execute_1.execute)(`git config user.email "${action.email}"`, action.workspace, action.silent);

}
catch (_a) {
catch (_b) {
(0, core_1.info)('Unable to unset previous git config authentication as it may not exist, continuing…');

@@ -54,3 +60,3 @@ }

}
catch (_b) {
catch (_c) {
(0, core_1.info)('Attempted to remove origin but failed, continuing…');

@@ -57,0 +63,0 @@ }

@@ -5,3 +5,3 @@ {

"author": "James Ives <iam@jamesiv.es> (https://jamesiv.es)",
"version": "4.3.0",
"version": "4.3.1",
"license": "MIT",

@@ -44,3 +44,3 @@ "main": "lib/lib.js",

"@types/jest": "27.4.1",
"@types/node": "17.0.23",
"@types/node": "17.0.25",
"@typescript-eslint/eslint-plugin": "4.33.0",

@@ -50,3 +50,3 @@ "@typescript-eslint/parser": "4.33.0",

"eslint-config-prettier": "8.5.0",
"eslint-plugin-jest": "26.1.3",
"eslint-plugin-jest": "26.1.4",
"eslint-plugin-prettier": "4.0.0",

@@ -53,0 +53,0 @@ "jest": "26.6.3",

@@ -24,2 +24,12 @@ import {info} from '@actions/core'

try {
await execute(
`git config --global --add safe.directory "${action.workspace}"`,
action.workspace,
action.silent
)
} catch {
info('Unable to set workspace as a safe directory…')
}
await execute(

@@ -26,0 +36,0 @@ `git config user.name "${action.name}"`,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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