Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run precommit
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run test
25 changes: 23 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ function deployStack(cfn, params, changeSetName, noEmptyChangeSet, noExecuteChan
RoleARN: params.RoleARN,
RollbackConfiguration: params.RollbackConfiguration,
NotificationARNs: params.NotificationARNs,
IncludeNestedStacks: params.IncludeNestedStacksChangeSet,
Tags: params.Tags
}), noEmptyChangeSet, noExecuteChangeSet, noDeleteFailedChangeSet);
});
Expand Down Expand Up @@ -281,6 +282,9 @@ function run() {
const changeSetName = (0, utils_1.parseString)(core.getInput('change-set-name', {
required: false
}));
const includeNestedStacksChangeSet = !!+core.getInput('include-nested-stacks-change-set', {
required: false
});
// Configures proxy
const agent = (0, utils_1.configureProxy)(httpProxy);
if (agent) {
Expand Down Expand Up @@ -317,7 +321,8 @@ function run() {
TemplateBody: templateBody,
TemplateURL: templateUrl,
Tags: tags,
EnableTerminationProtection: terminationProtections
EnableTerminationProtection: terminationProtections,
IncludeNestedStacksChangeSet: includeNestedStacksChangeSet
};
if (parameterOverrides) {
params.Parameters = (0, utils_1.parseParameters)(parameterOverrides.trim());
Expand Down Expand Up @@ -48334,6 +48339,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(9830)
const { File: UndiciFile } = __nccwpck_require__(8511)
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685)

let random
try {
const crypto = __nccwpck_require__(6005)
random = (max) => crypto.randomInt(0, max)
} catch {
random = (max) => Math.floor(Math.random(max))
}

let ReadableStream = globalThis.ReadableStream

/** @type {globalThis['File']} */
Expand Down Expand Up @@ -48419,7 +48432,7 @@ function extractBody (object, keepalive = false) {
// Set source to a copy of the bytes held by object.
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
} else if (util.isFormDataLike(object)) {
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
const prefix = `--${boundary}\r\nContent-Disposition: form-data`

/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
Expand Down Expand Up @@ -63192,6 +63205,14 @@ module.exports = require("net");

/***/ }),

/***/ 6005:
/***/ ((module) => {

"use strict";
module.exports = require("node:crypto");

/***/ }),

/***/ 5673:
/***/ ((module) => {

Expand Down
13 changes: 7 additions & 6 deletions package-lock.json

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

11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"pack": "ncc build",
"precommit": "lint-staged",
"test": "DEBUG=jest eslint **/*.ts && jest --coverage --detectOpenHandles --verbose",
"all": "npm run build && npm run precommit && npm run pack && npm test"
"all": "npm run build && npm run precommit && npm run pack && npm test",
"prepare": "husky"
},
"repository": {
"type": "git",
Expand All @@ -26,12 +27,6 @@
"url": "https://github.com/aws-actions/aws-cloudformation-github-deploy/issues"
},
"homepage": "https://github.com/aws-actions/aws-cloudformation-github-deploy#readme",
"husky": {
"hooks": {
"pre-commit": "npm run precommit",
"pre-push": "npm run test"
}
},
"dependencies": {
"@actions/core": "^1.10.0",
"@aws-sdk/client-cloudformation": "^3.474.0",
Expand All @@ -51,7 +46,7 @@
"eslint-plugin-github": "^4.4.1",
"eslint-plugin-jest": "^27.1.5",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.2",
"husky": "^9.1.7",
"jest": "^29.3.1",
"jest-circus": "^29.3.1",
"js-yaml": "^4.1.0",
Expand Down