node_modules: upgrade
This commit is contained in:
		
							parent
							
								
									b755e71a2c
								
							
						
					
					
						commit
						459a37aa01
					
				
					 1068 changed files with 6067 additions and 105143 deletions
				
			
		
							
								
								
									
										200
									
								
								node_modules/@actions/core/README.md
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										200
									
								
								node_modules/@actions/core/README.md
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -16,11 +16,14 @@ import * as core from '@actions/core';
 | 
			
		|||
 | 
			
		||||
#### Inputs/Outputs
 | 
			
		||||
 | 
			
		||||
Action inputs can be read with `getInput`.  Outputs can be set with `setOutput` which makes them available to be mapped into inputs of other actions to ensure they are decoupled.
 | 
			
		||||
Action inputs can be read with `getInput` which returns a `string` or `getBooleanInput` which parses a boolean based on the [yaml 1.2 specification](https://yaml.org/spec/1.2/spec.html#id2804923). If `required` set to be false, the input should have a default value in `action.yml`.
 | 
			
		||||
 | 
			
		||||
Outputs can be set with `setOutput` which makes them available to be mapped into inputs of other actions to ensure they are decoupled.
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
const myInput = core.getInput('inputName', { required: true });
 | 
			
		||||
 | 
			
		||||
const myBooleanInput = core.getBooleanInput('booleanInputName', { required: true });
 | 
			
		||||
const myMultilineInput = core.getMultilineInput('multilineInputName', { required: true });
 | 
			
		||||
core.setOutput('outputKey', 'outputVal');
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -62,11 +65,10 @@ catch (err) {
 | 
			
		|||
  // setFailed logs the message and sets a failing exit code
 | 
			
		||||
  core.setFailed(`Action failed with error ${err}`);
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Note that `setNeutral` is not yet implemented in actions V2 but equivalent functionality is being planned.
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
#### Logging
 | 
			
		||||
 | 
			
		||||
Finally, this library provides some utilities for logging. Note that debug logging is hidden from the logs by default. This behavior can be toggled by enabling the [Step Debug Logs](../../docs/action-debugging.md#step-debug-logs).
 | 
			
		||||
| 
						 | 
				
			
			@ -90,6 +92,8 @@ try {
 | 
			
		|||
 | 
			
		||||
  // Do stuff
 | 
			
		||||
  core.info('Output to the actions build log')
 | 
			
		||||
 | 
			
		||||
  core.notice('This is a message that will also emit an annotation')
 | 
			
		||||
}
 | 
			
		||||
catch (err) {
 | 
			
		||||
  core.error(`Error ${err}, action may still succeed though`);
 | 
			
		||||
| 
						 | 
				
			
			@ -113,11 +117,123 @@ const result = await core.group('Do something async', async () => {
 | 
			
		|||
})
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
#### Annotations
 | 
			
		||||
 | 
			
		||||
This library has 3 methods that will produce [annotations](https://docs.github.com/en/rest/reference/checks#create-a-check-run). 
 | 
			
		||||
```js
 | 
			
		||||
core.error('This is a bad error. This will also fail the build.')
 | 
			
		||||
 | 
			
		||||
core.warning('Something went wrong, but it\'s not bad enough to fail the build.')
 | 
			
		||||
 | 
			
		||||
core.notice('Something happened that you might want to know about.')
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
These will surface to the UI in the Actions page and on Pull Requests. They look something like this:
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
These annotations can also be attached to particular lines and columns of your source files to show exactly where a problem is occuring. 
 | 
			
		||||
 | 
			
		||||
These options are: 
 | 
			
		||||
```typescript
 | 
			
		||||
export interface AnnotationProperties {
 | 
			
		||||
  /**
 | 
			
		||||
   * A title for the annotation.
 | 
			
		||||
   */
 | 
			
		||||
  title?: string
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * The name of the file for which the annotation should be created.
 | 
			
		||||
   */
 | 
			
		||||
  file?: string
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * The start line for the annotation.
 | 
			
		||||
   */
 | 
			
		||||
  startLine?: number
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * The end line for the annotation. Defaults to `startLine` when `startLine` is provided.
 | 
			
		||||
   */
 | 
			
		||||
  endLine?: number
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values.
 | 
			
		||||
   */
 | 
			
		||||
  startColumn?: number
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values.
 | 
			
		||||
   * Defaults to `startColumn` when `startColumn` is provided.
 | 
			
		||||
   */
 | 
			
		||||
  endColumn?: number
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
#### Styling output
 | 
			
		||||
 | 
			
		||||
Colored output is supported in the Action logs via standard [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code). 3/4 bit, 8 bit and 24 bit colors are all supported.
 | 
			
		||||
 | 
			
		||||
Foreground colors:
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
// 3/4 bit
 | 
			
		||||
core.info('\u001b[35mThis foreground will be magenta')
 | 
			
		||||
 | 
			
		||||
// 8 bit
 | 
			
		||||
core.info('\u001b[38;5;6mThis foreground will be cyan')
 | 
			
		||||
 | 
			
		||||
// 24 bit
 | 
			
		||||
core.info('\u001b[38;2;255;0;0mThis foreground will be bright red')
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Background colors:
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
// 3/4 bit
 | 
			
		||||
core.info('\u001b[43mThis background will be yellow');
 | 
			
		||||
 | 
			
		||||
// 8 bit
 | 
			
		||||
core.info('\u001b[48;5;6mThis background will be cyan')
 | 
			
		||||
 | 
			
		||||
// 24 bit
 | 
			
		||||
core.info('\u001b[48;2;255;0;0mThis background will be bright red')
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Special styles:
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
core.info('\u001b[1mBold text')
 | 
			
		||||
core.info('\u001b[3mItalic text')
 | 
			
		||||
core.info('\u001b[4mUnderlined text')
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
ANSI escape codes can be combined with one another:
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
core.info('\u001b[31;46mRed foreground with a cyan background and \u001b[1mbold text at the end');
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
> Note: Escape codes reset at the start of each line
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
core.info('\u001b[35mThis foreground will be magenta')
 | 
			
		||||
core.info('This foreground will reset to the default')
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Manually typing escape codes can be a little difficult, but you can use third party modules such as [ansi-styles](https://github.com/chalk/ansi-styles).
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
const style = require('ansi-styles');
 | 
			
		||||
core.info(style.color.ansi16m.hex('#abcdef') + 'Hello world!')
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
#### Action state
 | 
			
		||||
 | 
			
		||||
You can use this library to save state and get state for sharing information between a given wrapper action: 
 | 
			
		||||
You can use this library to save state and get state for sharing information between a given wrapper action:
 | 
			
		||||
 | 
			
		||||
**action.yml**:
 | 
			
		||||
 | 
			
		||||
**action.yml**
 | 
			
		||||
```yaml
 | 
			
		||||
name: 'Wrapper action sample'
 | 
			
		||||
inputs:
 | 
			
		||||
| 
						 | 
				
			
			@ -138,6 +254,7 @@ core.saveState("pidToKill", 12345);
 | 
			
		|||
```
 | 
			
		||||
 | 
			
		||||
In action's `cleanup.js`:
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
const core = require('@actions/core');
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -145,3 +262,74 @@ var pid = core.getState("pidToKill");
 | 
			
		|||
 | 
			
		||||
process.kill(pid);
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
#### OIDC Token
 | 
			
		||||
 | 
			
		||||
You can use these methods to interact with the GitHub OIDC provider and get a JWT ID token which would help to get access token from third party cloud providers.
 | 
			
		||||
 | 
			
		||||
**Method Name**: getIDToken()
 | 
			
		||||
 | 
			
		||||
**Inputs**
 | 
			
		||||
 | 
			
		||||
audience : optional
 | 
			
		||||
 | 
			
		||||
**Outputs**
 | 
			
		||||
 | 
			
		||||
A [JWT](https://jwt.io/) ID Token
 | 
			
		||||
 | 
			
		||||
In action's `main.ts`:
 | 
			
		||||
```js
 | 
			
		||||
const core = require('@actions/core');
 | 
			
		||||
async function getIDTokenAction(): Promise<void> {
 | 
			
		||||
  
 | 
			
		||||
   const audience = core.getInput('audience', {required: false})
 | 
			
		||||
   
 | 
			
		||||
   const id_token1 = await core.getIDToken()            // ID Token with default audience
 | 
			
		||||
   const id_token2 = await core.getIDToken(audience)    // ID token with custom audience
 | 
			
		||||
   
 | 
			
		||||
   // this id_token can be used to get access token from third party cloud providers
 | 
			
		||||
}
 | 
			
		||||
getIDTokenAction()
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
In action's `actions.yml`:
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
name: 'GetIDToken'
 | 
			
		||||
description: 'Get ID token from Github OIDC provider'
 | 
			
		||||
inputs:
 | 
			
		||||
  audience:  
 | 
			
		||||
    description: 'Audience for which the ID token is intended for'
 | 
			
		||||
    required: false
 | 
			
		||||
outputs:
 | 
			
		||||
  id_token1: 
 | 
			
		||||
    description: 'ID token obtained from OIDC provider'
 | 
			
		||||
  id_token2: 
 | 
			
		||||
    description: 'ID token obtained from OIDC provider'
 | 
			
		||||
runs:
 | 
			
		||||
  using: 'node12'
 | 
			
		||||
  main: 'dist/index.js'
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
#### Filesystem path helpers
 | 
			
		||||
 | 
			
		||||
You can use these methods to manipulate file paths across operating systems.
 | 
			
		||||
 | 
			
		||||
The `toPosixPath` function converts input paths to Posix-style (Linux) paths.
 | 
			
		||||
The `toWin32Path` function converts input paths to Windows-style paths. These
 | 
			
		||||
functions work independently of the underlying runner operating system.
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
toPosixPath('\\foo\\bar') // => /foo/bar
 | 
			
		||||
toWin32Path('/foo/bar') // => \foo\bar
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
The `toPlatformPath` function converts input paths to the expected value on the runner's operating system.
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
// On a Windows runner.
 | 
			
		||||
toPlatformPath('/foo/bar') // => \foo\bar
 | 
			
		||||
 | 
			
		||||
// On a Linux runner.
 | 
			
		||||
toPlatformPath('\\foo\\bar') // => /foo/bar
 | 
			
		||||
```
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										3
									
								
								node_modules/@actions/core/lib/command.d.ts
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								node_modules/@actions/core/lib/command.d.ts
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
interface CommandProperties {
 | 
			
		||||
export interface CommandProperties {
 | 
			
		||||
    [key: string]: any;
 | 
			
		||||
}
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			@ -13,4 +13,3 @@ interface CommandProperties {
 | 
			
		|||
 */
 | 
			
		||||
export declare function issueCommand(command: string, properties: CommandProperties, message: any): void;
 | 
			
		||||
export declare function issue(name: string, message?: string): void;
 | 
			
		||||
export {};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										17
									
								
								node_modules/@actions/core/lib/command.js
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								node_modules/@actions/core/lib/command.js
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,12 +1,25 @@
 | 
			
		|||
"use strict";
 | 
			
		||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
 | 
			
		||||
    if (k2 === undefined) k2 = k;
 | 
			
		||||
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
 | 
			
		||||
}) : (function(o, m, k, k2) {
 | 
			
		||||
    if (k2 === undefined) k2 = k;
 | 
			
		||||
    o[k2] = m[k];
 | 
			
		||||
}));
 | 
			
		||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
 | 
			
		||||
    Object.defineProperty(o, "default", { enumerable: true, value: v });
 | 
			
		||||
}) : function(o, v) {
 | 
			
		||||
    o["default"] = v;
 | 
			
		||||
});
 | 
			
		||||
var __importStar = (this && this.__importStar) || function (mod) {
 | 
			
		||||
    if (mod && mod.__esModule) return mod;
 | 
			
		||||
    var result = {};
 | 
			
		||||
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
 | 
			
		||||
    result["default"] = mod;
 | 
			
		||||
    if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
 | 
			
		||||
    __setModuleDefault(result, mod);
 | 
			
		||||
    return result;
 | 
			
		||||
};
 | 
			
		||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
			
		||||
exports.issue = exports.issueCommand = void 0;
 | 
			
		||||
const os = __importStar(require("os"));
 | 
			
		||||
const utils_1 = require("./utils");
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								node_modules/@actions/core/lib/command.js.map
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								node_modules/@actions/core/lib/command.js.map
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1 +1 @@
 | 
			
		|||
{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAAwB;AACxB,mCAAsC;AAWtC;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,OAAe,EACf,UAA6B,EAC7B,OAAY;IAEZ,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AAC/C,CAAC;AAPD,oCAOC;AAED,SAAgB,KAAK,CAAC,IAAY,EAAE,UAAkB,EAAE;IACtD,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACjC,CAAC;AAFD,sBAEC;AAED,MAAM,UAAU,GAAG,IAAI,CAAA;AAEvB,MAAM,OAAO;IAKX,YAAY,OAAe,EAAE,UAA6B,EAAE,OAAe;QACzE,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,iBAAiB,CAAA;SAC5B;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,QAAQ;QACN,IAAI,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA;QAEtC,IAAI,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,GAAG,CAAA;YACb,IAAI,KAAK,GAAG,IAAI,CAAA;YAChB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE;gBACjC,IAAI,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACvC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;oBAChC,IAAI,GAAG,EAAE;wBACP,IAAI,KAAK,EAAE;4BACT,KAAK,GAAG,KAAK,CAAA;yBACd;6BAAM;4BACL,MAAM,IAAI,GAAG,CAAA;yBACd;wBAED,MAAM,IAAI,GAAG,GAAG,IAAI,cAAc,CAAC,GAAG,CAAC,EAAE,CAAA;qBAC1C;iBACF;aACF;SACF;QAED,MAAM,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAA;QACpD,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED,SAAS,UAAU,CAAC,CAAM;IACxB,OAAO,sBAAc,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AAC1B,CAAC;AAED,SAAS,cAAc,CAAC,CAAM;IAC5B,OAAO,sBAAc,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACzB,CAAC"}
 | 
			
		||||
{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwB;AACxB,mCAAsC;AAWtC;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,OAAe,EACf,UAA6B,EAC7B,OAAY;IAEZ,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AAC/C,CAAC;AAPD,oCAOC;AAED,SAAgB,KAAK,CAAC,IAAY,EAAE,OAAO,GAAG,EAAE;IAC9C,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACjC,CAAC;AAFD,sBAEC;AAED,MAAM,UAAU,GAAG,IAAI,CAAA;AAEvB,MAAM,OAAO;IAKX,YAAY,OAAe,EAAE,UAA6B,EAAE,OAAe;QACzE,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,iBAAiB,CAAA;SAC5B;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,QAAQ;QACN,IAAI,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA;QAEtC,IAAI,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,GAAG,CAAA;YACb,IAAI,KAAK,GAAG,IAAI,CAAA;YAChB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE;gBACjC,IAAI,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACvC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;oBAChC,IAAI,GAAG,EAAE;wBACP,IAAI,KAAK,EAAE;4BACT,KAAK,GAAG,KAAK,CAAA;yBACd;6BAAM;4BACL,MAAM,IAAI,GAAG,CAAA;yBACd;wBAED,MAAM,IAAI,GAAG,GAAG,IAAI,cAAc,CAAC,GAAG,CAAC,EAAE,CAAA;qBAC1C;iBACF;aACF;SACF;QAED,MAAM,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAA;QACpD,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED,SAAS,UAAU,CAAC,CAAM;IACxB,OAAO,sBAAc,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AAC1B,CAAC;AAED,SAAS,cAAc,CAAC,CAAM;IAC5B,OAAO,sBAAc,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACzB,CAAC"}
 | 
			
		||||
							
								
								
									
										84
									
								
								node_modules/@actions/core/lib/core.d.ts
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										84
									
								
								node_modules/@actions/core/lib/core.d.ts
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -4,6 +4,8 @@
 | 
			
		|||
export interface InputOptions {
 | 
			
		||||
    /** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */
 | 
			
		||||
    required?: boolean;
 | 
			
		||||
    /** Optional. Whether leading/trailing whitespace will be trimmed for the input. Defaults to true */
 | 
			
		||||
    trimWhitespace?: boolean;
 | 
			
		||||
}
 | 
			
		||||
/**
 | 
			
		||||
 * The code to exit an action
 | 
			
		||||
| 
						 | 
				
			
			@ -18,6 +20,37 @@ export declare enum ExitCode {
 | 
			
		|||
     */
 | 
			
		||||
    Failure = 1
 | 
			
		||||
}
 | 
			
		||||
/**
 | 
			
		||||
 * Optional properties that can be sent with annotatation commands (notice, error, and warning)
 | 
			
		||||
 * See: https://docs.github.com/en/rest/reference/checks#create-a-check-run for more information about annotations.
 | 
			
		||||
 */
 | 
			
		||||
export interface AnnotationProperties {
 | 
			
		||||
    /**
 | 
			
		||||
     * A title for the annotation.
 | 
			
		||||
     */
 | 
			
		||||
    title?: string;
 | 
			
		||||
    /**
 | 
			
		||||
     * The path of the file for which the annotation should be created.
 | 
			
		||||
     */
 | 
			
		||||
    file?: string;
 | 
			
		||||
    /**
 | 
			
		||||
     * The start line for the annotation.
 | 
			
		||||
     */
 | 
			
		||||
    startLine?: number;
 | 
			
		||||
    /**
 | 
			
		||||
     * The end line for the annotation. Defaults to `startLine` when `startLine` is provided.
 | 
			
		||||
     */
 | 
			
		||||
    endLine?: number;
 | 
			
		||||
    /**
 | 
			
		||||
     * The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values.
 | 
			
		||||
     */
 | 
			
		||||
    startColumn?: number;
 | 
			
		||||
    /**
 | 
			
		||||
     * The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values.
 | 
			
		||||
     * Defaults to `startColumn` when `startColumn` is provided.
 | 
			
		||||
     */
 | 
			
		||||
    endColumn?: number;
 | 
			
		||||
}
 | 
			
		||||
/**
 | 
			
		||||
 * Sets env variable for this action and future actions in the job
 | 
			
		||||
 * @param name the name of the variable to set
 | 
			
		||||
| 
						 | 
				
			
			@ -35,13 +68,35 @@ export declare function setSecret(secret: string): void;
 | 
			
		|||
 */
 | 
			
		||||
export declare function addPath(inputPath: string): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Gets the value of an input.  The value is also trimmed.
 | 
			
		||||
 * Gets the value of an input.
 | 
			
		||||
 * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.
 | 
			
		||||
 * Returns an empty string if the value is not defined.
 | 
			
		||||
 *
 | 
			
		||||
 * @param     name     name of the input to get
 | 
			
		||||
 * @param     options  optional. See InputOptions.
 | 
			
		||||
 * @returns   string
 | 
			
		||||
 */
 | 
			
		||||
export declare function getInput(name: string, options?: InputOptions): string;
 | 
			
		||||
/**
 | 
			
		||||
 * Gets the values of an multiline input.  Each value is also trimmed.
 | 
			
		||||
 *
 | 
			
		||||
 * @param     name     name of the input to get
 | 
			
		||||
 * @param     options  optional. See InputOptions.
 | 
			
		||||
 * @returns   string[]
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
export declare function getMultilineInput(name: string, options?: InputOptions): string[];
 | 
			
		||||
/**
 | 
			
		||||
 * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification.
 | 
			
		||||
 * Support boolean input list: `true | True | TRUE | false | False | FALSE` .
 | 
			
		||||
 * The return value is also in boolean type.
 | 
			
		||||
 * ref: https://yaml.org/spec/1.2/spec.html#id2804923
 | 
			
		||||
 *
 | 
			
		||||
 * @param     name     name of the input to get
 | 
			
		||||
 * @param     options  optional. See InputOptions.
 | 
			
		||||
 * @returns   boolean
 | 
			
		||||
 */
 | 
			
		||||
export declare function getBooleanInput(name: string, options?: InputOptions): boolean;
 | 
			
		||||
/**
 | 
			
		||||
 * Sets the value of an output.
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -73,13 +128,21 @@ export declare function debug(message: string): void;
 | 
			
		|||
/**
 | 
			
		||||
 * Adds an error issue
 | 
			
		||||
 * @param message error issue message. Errors will be converted to string via toString()
 | 
			
		||||
 * @param properties optional properties to add to the annotation.
 | 
			
		||||
 */
 | 
			
		||||
export declare function error(message: string | Error): void;
 | 
			
		||||
export declare function error(message: string | Error, properties?: AnnotationProperties): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Adds an warning issue
 | 
			
		||||
 * Adds a warning issue
 | 
			
		||||
 * @param message warning issue message. Errors will be converted to string via toString()
 | 
			
		||||
 * @param properties optional properties to add to the annotation.
 | 
			
		||||
 */
 | 
			
		||||
export declare function warning(message: string | Error): void;
 | 
			
		||||
export declare function warning(message: string | Error, properties?: AnnotationProperties): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Adds a notice issue
 | 
			
		||||
 * @param message notice issue message. Errors will be converted to string via toString()
 | 
			
		||||
 * @param properties optional properties to add to the annotation.
 | 
			
		||||
 */
 | 
			
		||||
export declare function notice(message: string | Error, properties?: AnnotationProperties): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Writes info to log with console.log.
 | 
			
		||||
 * @param message info message
 | 
			
		||||
| 
						 | 
				
			
			@ -120,3 +183,16 @@ export declare function saveState(name: string, value: any): void;
 | 
			
		|||
 * @returns   string
 | 
			
		||||
 */
 | 
			
		||||
export declare function getState(name: string): string;
 | 
			
		||||
export declare function getIDToken(aud?: string): Promise<string>;
 | 
			
		||||
/**
 | 
			
		||||
 * Summary exports
 | 
			
		||||
 */
 | 
			
		||||
export { summary } from './summary';
 | 
			
		||||
/**
 | 
			
		||||
 * @deprecated use core.summary
 | 
			
		||||
 */
 | 
			
		||||
export { markdownSummary } from './summary';
 | 
			
		||||
/**
 | 
			
		||||
 * Path exports
 | 
			
		||||
 */
 | 
			
		||||
export { toPosixPath, toWin32Path, toPlatformPath } from './path-utils';
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										142
									
								
								node_modules/@actions/core/lib/core.js
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										142
									
								
								node_modules/@actions/core/lib/core.js
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,4 +1,23 @@
 | 
			
		|||
"use strict";
 | 
			
		||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
 | 
			
		||||
    if (k2 === undefined) k2 = k;
 | 
			
		||||
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
 | 
			
		||||
}) : (function(o, m, k, k2) {
 | 
			
		||||
    if (k2 === undefined) k2 = k;
 | 
			
		||||
    o[k2] = m[k];
 | 
			
		||||
}));
 | 
			
		||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
 | 
			
		||||
    Object.defineProperty(o, "default", { enumerable: true, value: v });
 | 
			
		||||
}) : function(o, v) {
 | 
			
		||||
    o["default"] = v;
 | 
			
		||||
});
 | 
			
		||||
var __importStar = (this && this.__importStar) || function (mod) {
 | 
			
		||||
    if (mod && mod.__esModule) return mod;
 | 
			
		||||
    var result = {};
 | 
			
		||||
    if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
 | 
			
		||||
    __setModuleDefault(result, mod);
 | 
			
		||||
    return result;
 | 
			
		||||
};
 | 
			
		||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
 | 
			
		||||
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
 | 
			
		||||
    return new (P || (P = Promise))(function (resolve, reject) {
 | 
			
		||||
| 
						 | 
				
			
			@ -8,19 +27,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
 | 
			
		|||
        step((generator = generator.apply(thisArg, _arguments || [])).next());
 | 
			
		||||
    });
 | 
			
		||||
};
 | 
			
		||||
var __importStar = (this && this.__importStar) || function (mod) {
 | 
			
		||||
    if (mod && mod.__esModule) return mod;
 | 
			
		||||
    var result = {};
 | 
			
		||||
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
 | 
			
		||||
    result["default"] = mod;
 | 
			
		||||
    return result;
 | 
			
		||||
};
 | 
			
		||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
			
		||||
exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
 | 
			
		||||
const command_1 = require("./command");
 | 
			
		||||
const file_command_1 = require("./file-command");
 | 
			
		||||
const utils_1 = require("./utils");
 | 
			
		||||
const os = __importStar(require("os"));
 | 
			
		||||
const path = __importStar(require("path"));
 | 
			
		||||
const oidc_utils_1 = require("./oidc-utils");
 | 
			
		||||
/**
 | 
			
		||||
 * The code to exit an action
 | 
			
		||||
 */
 | 
			
		||||
| 
						 | 
				
			
			@ -49,13 +63,9 @@ function exportVariable(name, val) {
 | 
			
		|||
    process.env[name] = convertedVal;
 | 
			
		||||
    const filePath = process.env['GITHUB_ENV'] || '';
 | 
			
		||||
    if (filePath) {
 | 
			
		||||
        const delimiter = '_GitHubActionsFileCommandDelimeter_';
 | 
			
		||||
        const commandValue = `${name}<<${delimiter}${os.EOL}${convertedVal}${os.EOL}${delimiter}`;
 | 
			
		||||
        file_command_1.issueCommand('ENV', commandValue);
 | 
			
		||||
    }
 | 
			
		||||
    else {
 | 
			
		||||
        command_1.issueCommand('set-env', { name }, convertedVal);
 | 
			
		||||
        return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val));
 | 
			
		||||
    }
 | 
			
		||||
    command_1.issueCommand('set-env', { name }, convertedVal);
 | 
			
		||||
}
 | 
			
		||||
exports.exportVariable = exportVariable;
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			@ -73,7 +83,7 @@ exports.setSecret = setSecret;
 | 
			
		|||
function addPath(inputPath) {
 | 
			
		||||
    const filePath = process.env['GITHUB_PATH'] || '';
 | 
			
		||||
    if (filePath) {
 | 
			
		||||
        file_command_1.issueCommand('PATH', inputPath);
 | 
			
		||||
        file_command_1.issueFileCommand('PATH', inputPath);
 | 
			
		||||
    }
 | 
			
		||||
    else {
 | 
			
		||||
        command_1.issueCommand('add-path', {}, inputPath);
 | 
			
		||||
| 
						 | 
				
			
			@ -82,7 +92,9 @@ function addPath(inputPath) {
 | 
			
		|||
}
 | 
			
		||||
exports.addPath = addPath;
 | 
			
		||||
/**
 | 
			
		||||
 * Gets the value of an input.  The value is also trimmed.
 | 
			
		||||
 * Gets the value of an input.
 | 
			
		||||
 * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.
 | 
			
		||||
 * Returns an empty string if the value is not defined.
 | 
			
		||||
 *
 | 
			
		||||
 * @param     name     name of the input to get
 | 
			
		||||
 * @param     options  optional. See InputOptions.
 | 
			
		||||
| 
						 | 
				
			
			@ -93,9 +105,52 @@ function getInput(name, options) {
 | 
			
		|||
    if (options && options.required && !val) {
 | 
			
		||||
        throw new Error(`Input required and not supplied: ${name}`);
 | 
			
		||||
    }
 | 
			
		||||
    if (options && options.trimWhitespace === false) {
 | 
			
		||||
        return val;
 | 
			
		||||
    }
 | 
			
		||||
    return val.trim();
 | 
			
		||||
}
 | 
			
		||||
exports.getInput = getInput;
 | 
			
		||||
/**
 | 
			
		||||
 * Gets the values of an multiline input.  Each value is also trimmed.
 | 
			
		||||
 *
 | 
			
		||||
 * @param     name     name of the input to get
 | 
			
		||||
 * @param     options  optional. See InputOptions.
 | 
			
		||||
 * @returns   string[]
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
function getMultilineInput(name, options) {
 | 
			
		||||
    const inputs = getInput(name, options)
 | 
			
		||||
        .split('\n')
 | 
			
		||||
        .filter(x => x !== '');
 | 
			
		||||
    if (options && options.trimWhitespace === false) {
 | 
			
		||||
        return inputs;
 | 
			
		||||
    }
 | 
			
		||||
    return inputs.map(input => input.trim());
 | 
			
		||||
}
 | 
			
		||||
exports.getMultilineInput = getMultilineInput;
 | 
			
		||||
/**
 | 
			
		||||
 * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification.
 | 
			
		||||
 * Support boolean input list: `true | True | TRUE | false | False | FALSE` .
 | 
			
		||||
 * The return value is also in boolean type.
 | 
			
		||||
 * ref: https://yaml.org/spec/1.2/spec.html#id2804923
 | 
			
		||||
 *
 | 
			
		||||
 * @param     name     name of the input to get
 | 
			
		||||
 * @param     options  optional. See InputOptions.
 | 
			
		||||
 * @returns   boolean
 | 
			
		||||
 */
 | 
			
		||||
function getBooleanInput(name, options) {
 | 
			
		||||
    const trueValue = ['true', 'True', 'TRUE'];
 | 
			
		||||
    const falseValue = ['false', 'False', 'FALSE'];
 | 
			
		||||
    const val = getInput(name, options);
 | 
			
		||||
    if (trueValue.includes(val))
 | 
			
		||||
        return true;
 | 
			
		||||
    if (falseValue.includes(val))
 | 
			
		||||
        return false;
 | 
			
		||||
    throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` +
 | 
			
		||||
        `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
 | 
			
		||||
}
 | 
			
		||||
exports.getBooleanInput = getBooleanInput;
 | 
			
		||||
/**
 | 
			
		||||
 * Sets the value of an output.
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -104,7 +159,12 @@ exports.getInput = getInput;
 | 
			
		|||
 */
 | 
			
		||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
 | 
			
		||||
function setOutput(name, value) {
 | 
			
		||||
    command_1.issueCommand('set-output', { name }, value);
 | 
			
		||||
    const filePath = process.env['GITHUB_OUTPUT'] || '';
 | 
			
		||||
    if (filePath) {
 | 
			
		||||
        return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value));
 | 
			
		||||
    }
 | 
			
		||||
    process.stdout.write(os.EOL);
 | 
			
		||||
    command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value));
 | 
			
		||||
}
 | 
			
		||||
exports.setOutput = setOutput;
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			@ -150,19 +210,30 @@ exports.debug = debug;
 | 
			
		|||
/**
 | 
			
		||||
 * Adds an error issue
 | 
			
		||||
 * @param message error issue message. Errors will be converted to string via toString()
 | 
			
		||||
 * @param properties optional properties to add to the annotation.
 | 
			
		||||
 */
 | 
			
		||||
function error(message) {
 | 
			
		||||
    command_1.issue('error', message instanceof Error ? message.toString() : message);
 | 
			
		||||
function error(message, properties = {}) {
 | 
			
		||||
    command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
 | 
			
		||||
}
 | 
			
		||||
exports.error = error;
 | 
			
		||||
/**
 | 
			
		||||
 * Adds an warning issue
 | 
			
		||||
 * Adds a warning issue
 | 
			
		||||
 * @param message warning issue message. Errors will be converted to string via toString()
 | 
			
		||||
 * @param properties optional properties to add to the annotation.
 | 
			
		||||
 */
 | 
			
		||||
function warning(message) {
 | 
			
		||||
    command_1.issue('warning', message instanceof Error ? message.toString() : message);
 | 
			
		||||
function warning(message, properties = {}) {
 | 
			
		||||
    command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
 | 
			
		||||
}
 | 
			
		||||
exports.warning = warning;
 | 
			
		||||
/**
 | 
			
		||||
 * Adds a notice issue
 | 
			
		||||
 * @param message notice issue message. Errors will be converted to string via toString()
 | 
			
		||||
 * @param properties optional properties to add to the annotation.
 | 
			
		||||
 */
 | 
			
		||||
function notice(message, properties = {}) {
 | 
			
		||||
    command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
 | 
			
		||||
}
 | 
			
		||||
exports.notice = notice;
 | 
			
		||||
/**
 | 
			
		||||
 * Writes info to log with console.log.
 | 
			
		||||
 * @param message info message
 | 
			
		||||
| 
						 | 
				
			
			@ -222,7 +293,11 @@ exports.group = group;
 | 
			
		|||
 */
 | 
			
		||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
 | 
			
		||||
function saveState(name, value) {
 | 
			
		||||
    command_1.issueCommand('save-state', { name }, value);
 | 
			
		||||
    const filePath = process.env['GITHUB_STATE'] || '';
 | 
			
		||||
    if (filePath) {
 | 
			
		||||
        return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value));
 | 
			
		||||
    }
 | 
			
		||||
    command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value));
 | 
			
		||||
}
 | 
			
		||||
exports.saveState = saveState;
 | 
			
		||||
/**
 | 
			
		||||
| 
						 | 
				
			
			@ -235,4 +310,27 @@ function getState(name) {
 | 
			
		|||
    return process.env[`STATE_${name}`] || '';
 | 
			
		||||
}
 | 
			
		||||
exports.getState = getState;
 | 
			
		||||
function getIDToken(aud) {
 | 
			
		||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
			
		||||
        return yield oidc_utils_1.OidcClient.getIDToken(aud);
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
exports.getIDToken = getIDToken;
 | 
			
		||||
/**
 | 
			
		||||
 * Summary exports
 | 
			
		||||
 */
 | 
			
		||||
var summary_1 = require("./summary");
 | 
			
		||||
Object.defineProperty(exports, "summary", { enumerable: true, get: function () { return summary_1.summary; } });
 | 
			
		||||
/**
 | 
			
		||||
 * @deprecated use core.summary
 | 
			
		||||
 */
 | 
			
		||||
var summary_2 = require("./summary");
 | 
			
		||||
Object.defineProperty(exports, "markdownSummary", { enumerable: true, get: function () { return summary_2.markdownSummary; } });
 | 
			
		||||
/**
 | 
			
		||||
 * Path exports
 | 
			
		||||
 */
 | 
			
		||||
var path_utils_1 = require("./path-utils");
 | 
			
		||||
Object.defineProperty(exports, "toPosixPath", { enumerable: true, get: function () { return path_utils_1.toPosixPath; } });
 | 
			
		||||
Object.defineProperty(exports, "toWin32Path", { enumerable: true, get: function () { return path_utils_1.toWin32Path; } });
 | 
			
		||||
Object.defineProperty(exports, "toPlatformPath", { enumerable: true, get: function () { return path_utils_1.toPlatformPath; } });
 | 
			
		||||
//# sourceMappingURL=core.js.map
 | 
			
		||||
							
								
								
									
										2
									
								
								node_modules/@actions/core/lib/core.js.map
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								node_modules/@actions/core/lib/core.js.map
									
										
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										3
									
								
								node_modules/@actions/core/lib/file-command.d.ts
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								node_modules/@actions/core/lib/file-command.d.ts
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1 +1,2 @@
 | 
			
		|||
export declare function issueCommand(command: string, message: any): void;
 | 
			
		||||
export declare function issueFileCommand(command: string, message: any): void;
 | 
			
		||||
export declare function prepareKeyValueMessage(key: string, value: any): string;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										37
									
								
								node_modules/@actions/core/lib/file-command.js
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										37
									
								
								node_modules/@actions/core/lib/file-command.js
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,19 +1,33 @@
 | 
			
		|||
"use strict";
 | 
			
		||||
// For internal use, subject to change.
 | 
			
		||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
 | 
			
		||||
    if (k2 === undefined) k2 = k;
 | 
			
		||||
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
 | 
			
		||||
}) : (function(o, m, k, k2) {
 | 
			
		||||
    if (k2 === undefined) k2 = k;
 | 
			
		||||
    o[k2] = m[k];
 | 
			
		||||
}));
 | 
			
		||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
 | 
			
		||||
    Object.defineProperty(o, "default", { enumerable: true, value: v });
 | 
			
		||||
}) : function(o, v) {
 | 
			
		||||
    o["default"] = v;
 | 
			
		||||
});
 | 
			
		||||
var __importStar = (this && this.__importStar) || function (mod) {
 | 
			
		||||
    if (mod && mod.__esModule) return mod;
 | 
			
		||||
    var result = {};
 | 
			
		||||
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
 | 
			
		||||
    result["default"] = mod;
 | 
			
		||||
    if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
 | 
			
		||||
    __setModuleDefault(result, mod);
 | 
			
		||||
    return result;
 | 
			
		||||
};
 | 
			
		||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
			
		||||
exports.prepareKeyValueMessage = exports.issueFileCommand = void 0;
 | 
			
		||||
// We use any as a valid input type
 | 
			
		||||
/* eslint-disable @typescript-eslint/no-explicit-any */
 | 
			
		||||
const fs = __importStar(require("fs"));
 | 
			
		||||
const os = __importStar(require("os"));
 | 
			
		||||
const uuid_1 = require("uuid");
 | 
			
		||||
const utils_1 = require("./utils");
 | 
			
		||||
function issueCommand(command, message) {
 | 
			
		||||
function issueFileCommand(command, message) {
 | 
			
		||||
    const filePath = process.env[`GITHUB_${command}`];
 | 
			
		||||
    if (!filePath) {
 | 
			
		||||
        throw new Error(`Unable to find environment variable for file command ${command}`);
 | 
			
		||||
| 
						 | 
				
			
			@ -25,5 +39,20 @@ function issueCommand(command, message) {
 | 
			
		|||
        encoding: 'utf8'
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
exports.issueCommand = issueCommand;
 | 
			
		||||
exports.issueFileCommand = issueFileCommand;
 | 
			
		||||
function prepareKeyValueMessage(key, value) {
 | 
			
		||||
    const delimiter = `ghadelimiter_${uuid_1.v4()}`;
 | 
			
		||||
    const convertedValue = utils_1.toCommandValue(value);
 | 
			
		||||
    // These should realistically never happen, but just in case someone finds a
 | 
			
		||||
    // way to exploit uuid generation let's not allow keys or values that contain
 | 
			
		||||
    // the delimiter.
 | 
			
		||||
    if (key.includes(delimiter)) {
 | 
			
		||||
        throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`);
 | 
			
		||||
    }
 | 
			
		||||
    if (convertedValue.includes(delimiter)) {
 | 
			
		||||
        throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`);
 | 
			
		||||
    }
 | 
			
		||||
    return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`;
 | 
			
		||||
}
 | 
			
		||||
exports.prepareKeyValueMessage = prepareKeyValueMessage;
 | 
			
		||||
//# sourceMappingURL=file-command.js.map
 | 
			
		||||
							
								
								
									
										2
									
								
								node_modules/@actions/core/lib/file-command.js.map
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								node_modules/@actions/core/lib/file-command.js.map
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1 +1 @@
 | 
			
		|||
{"version":3,"file":"file-command.js","sourceRoot":"","sources":["../src/file-command.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;;;;;;;AAEvC,mCAAmC;AACnC,uDAAuD;AAEvD,uCAAwB;AACxB,uCAAwB;AACxB,mCAAsC;AAEtC,SAAgB,YAAY,CAAC,OAAe,EAAE,OAAY;IACxD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,OAAO,EAAE,CAAC,CAAA;IACjD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CACb,wDAAwD,OAAO,EAAE,CAClE,CAAA;KACF;IACD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,QAAQ,EAAE,CAAC,CAAA;KACrD;IAED,EAAE,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,sBAAc,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACjE,QAAQ,EAAE,MAAM;KACjB,CAAC,CAAA;AACJ,CAAC;AAdD,oCAcC"}
 | 
			
		||||
{"version":3,"file":"file-command.js","sourceRoot":"","sources":["../src/file-command.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;;;;;;;;;;;;;;;;;;;;AAEvC,mCAAmC;AACnC,uDAAuD;AAEvD,uCAAwB;AACxB,uCAAwB;AACxB,+BAAiC;AACjC,mCAAsC;AAEtC,SAAgB,gBAAgB,CAAC,OAAe,EAAE,OAAY;IAC5D,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,OAAO,EAAE,CAAC,CAAA;IACjD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CACb,wDAAwD,OAAO,EAAE,CAClE,CAAA;KACF;IACD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,QAAQ,EAAE,CAAC,CAAA;KACrD;IAED,EAAE,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,sBAAc,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACjE,QAAQ,EAAE,MAAM;KACjB,CAAC,CAAA;AACJ,CAAC;AAdD,4CAcC;AAED,SAAgB,sBAAsB,CAAC,GAAW,EAAE,KAAU;IAC5D,MAAM,SAAS,GAAG,gBAAgB,SAAM,EAAE,EAAE,CAAA;IAC5C,MAAM,cAAc,GAAG,sBAAc,CAAC,KAAK,CAAC,CAAA;IAE5C,4EAA4E;IAC5E,6EAA6E;IAC7E,iBAAiB;IACjB,IAAI,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QAC3B,MAAM,IAAI,KAAK,CACb,4DAA4D,SAAS,GAAG,CACzE,CAAA;KACF;IAED,IAAI,cAAc,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QACtC,MAAM,IAAI,KAAK,CACb,6DAA6D,SAAS,GAAG,CAC1E,CAAA;KACF;IAED,OAAO,GAAG,GAAG,KAAK,SAAS,GAAG,EAAE,CAAC,GAAG,GAAG,cAAc,GAAG,EAAE,CAAC,GAAG,GAAG,SAAS,EAAE,CAAA;AAC9E,CAAC;AApBD,wDAoBC"}
 | 
			
		||||
							
								
								
									
										7
									
								
								node_modules/@actions/core/lib/oidc-utils.d.ts
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								node_modules/@actions/core/lib/oidc-utils.d.ts
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,7 @@
 | 
			
		|||
export declare class OidcClient {
 | 
			
		||||
    private static createHttpClient;
 | 
			
		||||
    private static getRequestToken;
 | 
			
		||||
    private static getIDTokenUrl;
 | 
			
		||||
    private static getCall;
 | 
			
		||||
    static getIDToken(audience?: string): Promise<string>;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										77
									
								
								node_modules/@actions/core/lib/oidc-utils.js
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										77
									
								
								node_modules/@actions/core/lib/oidc-utils.js
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,77 @@
 | 
			
		|||
"use strict";
 | 
			
		||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
 | 
			
		||||
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
 | 
			
		||||
    return new (P || (P = Promise))(function (resolve, reject) {
 | 
			
		||||
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
 | 
			
		||||
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
 | 
			
		||||
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
 | 
			
		||||
        step((generator = generator.apply(thisArg, _arguments || [])).next());
 | 
			
		||||
    });
 | 
			
		||||
};
 | 
			
		||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
			
		||||
exports.OidcClient = void 0;
 | 
			
		||||
const http_client_1 = require("@actions/http-client");
 | 
			
		||||
const auth_1 = require("@actions/http-client/lib/auth");
 | 
			
		||||
const core_1 = require("./core");
 | 
			
		||||
class OidcClient {
 | 
			
		||||
    static createHttpClient(allowRetry = true, maxRetry = 10) {
 | 
			
		||||
        const requestOptions = {
 | 
			
		||||
            allowRetries: allowRetry,
 | 
			
		||||
            maxRetries: maxRetry
 | 
			
		||||
        };
 | 
			
		||||
        return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions);
 | 
			
		||||
    }
 | 
			
		||||
    static getRequestToken() {
 | 
			
		||||
        const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN'];
 | 
			
		||||
        if (!token) {
 | 
			
		||||
            throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable');
 | 
			
		||||
        }
 | 
			
		||||
        return token;
 | 
			
		||||
    }
 | 
			
		||||
    static getIDTokenUrl() {
 | 
			
		||||
        const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL'];
 | 
			
		||||
        if (!runtimeUrl) {
 | 
			
		||||
            throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable');
 | 
			
		||||
        }
 | 
			
		||||
        return runtimeUrl;
 | 
			
		||||
    }
 | 
			
		||||
    static getCall(id_token_url) {
 | 
			
		||||
        var _a;
 | 
			
		||||
        return __awaiter(this, void 0, void 0, function* () {
 | 
			
		||||
            const httpclient = OidcClient.createHttpClient();
 | 
			
		||||
            const res = yield httpclient
 | 
			
		||||
                .getJson(id_token_url)
 | 
			
		||||
                .catch(error => {
 | 
			
		||||
                throw new Error(`Failed to get ID Token. \n 
 | 
			
		||||
        Error Code : ${error.statusCode}\n 
 | 
			
		||||
        Error Message: ${error.result.message}`);
 | 
			
		||||
            });
 | 
			
		||||
            const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
 | 
			
		||||
            if (!id_token) {
 | 
			
		||||
                throw new Error('Response json body do not have ID Token field');
 | 
			
		||||
            }
 | 
			
		||||
            return id_token;
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
    static getIDToken(audience) {
 | 
			
		||||
        return __awaiter(this, void 0, void 0, function* () {
 | 
			
		||||
            try {
 | 
			
		||||
                // New ID Token is requested from action service
 | 
			
		||||
                let id_token_url = OidcClient.getIDTokenUrl();
 | 
			
		||||
                if (audience) {
 | 
			
		||||
                    const encodedAudience = encodeURIComponent(audience);
 | 
			
		||||
                    id_token_url = `${id_token_url}&audience=${encodedAudience}`;
 | 
			
		||||
                }
 | 
			
		||||
                core_1.debug(`ID token url is ${id_token_url}`);
 | 
			
		||||
                const id_token = yield OidcClient.getCall(id_token_url);
 | 
			
		||||
                core_1.setSecret(id_token);
 | 
			
		||||
                return id_token;
 | 
			
		||||
            }
 | 
			
		||||
            catch (error) {
 | 
			
		||||
                throw new Error(`Error message: ${error.message}`);
 | 
			
		||||
            }
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
exports.OidcClient = OidcClient;
 | 
			
		||||
//# sourceMappingURL=oidc-utils.js.map
 | 
			
		||||
							
								
								
									
										1
									
								
								node_modules/@actions/core/lib/oidc-utils.js.map
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								node_modules/@actions/core/lib/oidc-utils.js.map
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
{"version":3,"file":"oidc-utils.js","sourceRoot":"","sources":["../src/oidc-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,sDAA+C;AAC/C,wDAAqE;AACrE,iCAAuC;AAKvC,MAAa,UAAU;IACb,MAAM,CAAC,gBAAgB,CAC7B,UAAU,GAAG,IAAI,EACjB,QAAQ,GAAG,EAAE;QAEb,MAAM,cAAc,GAAmB;YACrC,YAAY,EAAE,UAAU;YACxB,UAAU,EAAE,QAAQ;SACrB,CAAA;QAED,OAAO,IAAI,wBAAU,CACnB,qBAAqB,EACrB,CAAC,IAAI,8BAAuB,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,CAAC,EAC3D,cAAc,CACf,CAAA;IACH,CAAC;IAEO,MAAM,CAAC,eAAe;QAC5B,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAA;QAC3D,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,IAAI,KAAK,CACb,2DAA2D,CAC5D,CAAA;SACF;QACD,OAAO,KAAK,CAAA;IACd,CAAC;IAEO,MAAM,CAAC,aAAa;QAC1B,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAA;QAC9D,IAAI,CAAC,UAAU,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAA;SAC3E;QACD,OAAO,UAAU,CAAA;IACnB,CAAC;IAEO,MAAM,CAAO,OAAO,CAAC,YAAoB;;;YAC/C,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAA;YAEhD,MAAM,GAAG,GAAG,MAAM,UAAU;iBACzB,OAAO,CAAgB,YAAY,CAAC;iBACpC,KAAK,CAAC,KAAK,CAAC,EAAE;gBACb,MAAM,IAAI,KAAK,CACb;uBACa,KAAK,CAAC,UAAU;yBACd,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CACtC,CAAA;YACH,CAAC,CAAC,CAAA;YAEJ,MAAM,QAAQ,SAAG,GAAG,CAAC,MAAM,0CAAE,KAAK,CAAA;YAClC,IAAI,CAAC,QAAQ,EAAE;gBACb,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAA;aACjE;YACD,OAAO,QAAQ,CAAA;;KAChB;IAED,MAAM,CAAO,UAAU,CAAC,QAAiB;;YACvC,IAAI;gBACF,gDAAgD;gBAChD,IAAI,YAAY,GAAW,UAAU,CAAC,aAAa,EAAE,CAAA;gBACrD,IAAI,QAAQ,EAAE;oBACZ,MAAM,eAAe,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAA;oBACpD,YAAY,GAAG,GAAG,YAAY,aAAa,eAAe,EAAE,CAAA;iBAC7D;gBAED,YAAK,CAAC,mBAAmB,YAAY,EAAE,CAAC,CAAA;gBAExC,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;gBACvD,gBAAS,CAAC,QAAQ,CAAC,CAAA;gBACnB,OAAO,QAAQ,CAAA;aAChB;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,IAAI,KAAK,CAAC,kBAAkB,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;aACnD;QACH,CAAC;KAAA;CACF;AAzED,gCAyEC"}
 | 
			
		||||
							
								
								
									
										25
									
								
								node_modules/@actions/core/lib/path-utils.d.ts
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								node_modules/@actions/core/lib/path-utils.d.ts
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,25 @@
 | 
			
		|||
/**
 | 
			
		||||
 * toPosixPath converts the given path to the posix form. On Windows, \\ will be
 | 
			
		||||
 * replaced with /.
 | 
			
		||||
 *
 | 
			
		||||
 * @param pth. Path to transform.
 | 
			
		||||
 * @return string Posix path.
 | 
			
		||||
 */
 | 
			
		||||
export declare function toPosixPath(pth: string): string;
 | 
			
		||||
/**
 | 
			
		||||
 * toWin32Path converts the given path to the win32 form. On Linux, / will be
 | 
			
		||||
 * replaced with \\.
 | 
			
		||||
 *
 | 
			
		||||
 * @param pth. Path to transform.
 | 
			
		||||
 * @return string Win32 path.
 | 
			
		||||
 */
 | 
			
		||||
export declare function toWin32Path(pth: string): string;
 | 
			
		||||
/**
 | 
			
		||||
 * toPlatformPath converts the given path to a platform-specific path. It does
 | 
			
		||||
 * this by replacing instances of / and \ with the platform-specific path
 | 
			
		||||
 * separator.
 | 
			
		||||
 *
 | 
			
		||||
 * @param pth The path to platformize.
 | 
			
		||||
 * @return string The platform-specific path.
 | 
			
		||||
 */
 | 
			
		||||
export declare function toPlatformPath(pth: string): string;
 | 
			
		||||
							
								
								
									
										58
									
								
								node_modules/@actions/core/lib/path-utils.js
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										58
									
								
								node_modules/@actions/core/lib/path-utils.js
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,58 @@
 | 
			
		|||
"use strict";
 | 
			
		||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
 | 
			
		||||
    if (k2 === undefined) k2 = k;
 | 
			
		||||
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
 | 
			
		||||
}) : (function(o, m, k, k2) {
 | 
			
		||||
    if (k2 === undefined) k2 = k;
 | 
			
		||||
    o[k2] = m[k];
 | 
			
		||||
}));
 | 
			
		||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
 | 
			
		||||
    Object.defineProperty(o, "default", { enumerable: true, value: v });
 | 
			
		||||
}) : function(o, v) {
 | 
			
		||||
    o["default"] = v;
 | 
			
		||||
});
 | 
			
		||||
var __importStar = (this && this.__importStar) || function (mod) {
 | 
			
		||||
    if (mod && mod.__esModule) return mod;
 | 
			
		||||
    var result = {};
 | 
			
		||||
    if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
 | 
			
		||||
    __setModuleDefault(result, mod);
 | 
			
		||||
    return result;
 | 
			
		||||
};
 | 
			
		||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
			
		||||
exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0;
 | 
			
		||||
const path = __importStar(require("path"));
 | 
			
		||||
/**
 | 
			
		||||
 * toPosixPath converts the given path to the posix form. On Windows, \\ will be
 | 
			
		||||
 * replaced with /.
 | 
			
		||||
 *
 | 
			
		||||
 * @param pth. Path to transform.
 | 
			
		||||
 * @return string Posix path.
 | 
			
		||||
 */
 | 
			
		||||
function toPosixPath(pth) {
 | 
			
		||||
    return pth.replace(/[\\]/g, '/');
 | 
			
		||||
}
 | 
			
		||||
exports.toPosixPath = toPosixPath;
 | 
			
		||||
/**
 | 
			
		||||
 * toWin32Path converts the given path to the win32 form. On Linux, / will be
 | 
			
		||||
 * replaced with \\.
 | 
			
		||||
 *
 | 
			
		||||
 * @param pth. Path to transform.
 | 
			
		||||
 * @return string Win32 path.
 | 
			
		||||
 */
 | 
			
		||||
function toWin32Path(pth) {
 | 
			
		||||
    return pth.replace(/[/]/g, '\\');
 | 
			
		||||
}
 | 
			
		||||
exports.toWin32Path = toWin32Path;
 | 
			
		||||
/**
 | 
			
		||||
 * toPlatformPath converts the given path to a platform-specific path. It does
 | 
			
		||||
 * this by replacing instances of / and \ with the platform-specific path
 | 
			
		||||
 * separator.
 | 
			
		||||
 *
 | 
			
		||||
 * @param pth The path to platformize.
 | 
			
		||||
 * @return string The platform-specific path.
 | 
			
		||||
 */
 | 
			
		||||
function toPlatformPath(pth) {
 | 
			
		||||
    return pth.replace(/[/\\]/g, path.sep);
 | 
			
		||||
}
 | 
			
		||||
exports.toPlatformPath = toPlatformPath;
 | 
			
		||||
//# sourceMappingURL=path-utils.js.map
 | 
			
		||||
							
								
								
									
										1
									
								
								node_modules/@actions/core/lib/path-utils.js.map
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								node_modules/@actions/core/lib/path-utils.js.map
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
{"version":3,"file":"path-utils.js","sourceRoot":"","sources":["../src/path-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4B;AAE5B;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;AAClC,CAAC;AAFD,kCAEC;AAED;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;AAClC,CAAC;AAFD,kCAEC;AAED;;;;;;;GAOG;AACH,SAAgB,cAAc,CAAC,GAAW;IACxC,OAAO,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAA;AACxC,CAAC;AAFD,wCAEC"}
 | 
			
		||||
							
								
								
									
										202
									
								
								node_modules/@actions/core/lib/summary.d.ts
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										202
									
								
								node_modules/@actions/core/lib/summary.d.ts
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,202 @@
 | 
			
		|||
export declare const SUMMARY_ENV_VAR = "GITHUB_STEP_SUMMARY";
 | 
			
		||||
export declare const SUMMARY_DOCS_URL = "https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";
 | 
			
		||||
export declare type SummaryTableRow = (SummaryTableCell | string)[];
 | 
			
		||||
export interface SummaryTableCell {
 | 
			
		||||
    /**
 | 
			
		||||
     * Cell content
 | 
			
		||||
     */
 | 
			
		||||
    data: string;
 | 
			
		||||
    /**
 | 
			
		||||
     * Render cell as header
 | 
			
		||||
     * (optional) default: false
 | 
			
		||||
     */
 | 
			
		||||
    header?: boolean;
 | 
			
		||||
    /**
 | 
			
		||||
     * Number of columns the cell extends
 | 
			
		||||
     * (optional) default: '1'
 | 
			
		||||
     */
 | 
			
		||||
    colspan?: string;
 | 
			
		||||
    /**
 | 
			
		||||
     * Number of rows the cell extends
 | 
			
		||||
     * (optional) default: '1'
 | 
			
		||||
     */
 | 
			
		||||
    rowspan?: string;
 | 
			
		||||
}
 | 
			
		||||
export interface SummaryImageOptions {
 | 
			
		||||
    /**
 | 
			
		||||
     * The width of the image in pixels. Must be an integer without a unit.
 | 
			
		||||
     * (optional)
 | 
			
		||||
     */
 | 
			
		||||
    width?: string;
 | 
			
		||||
    /**
 | 
			
		||||
     * The height of the image in pixels. Must be an integer without a unit.
 | 
			
		||||
     * (optional)
 | 
			
		||||
     */
 | 
			
		||||
    height?: string;
 | 
			
		||||
}
 | 
			
		||||
export interface SummaryWriteOptions {
 | 
			
		||||
    /**
 | 
			
		||||
     * Replace all existing content in summary file with buffer contents
 | 
			
		||||
     * (optional) default: false
 | 
			
		||||
     */
 | 
			
		||||
    overwrite?: boolean;
 | 
			
		||||
}
 | 
			
		||||
declare class Summary {
 | 
			
		||||
    private _buffer;
 | 
			
		||||
    private _filePath?;
 | 
			
		||||
    constructor();
 | 
			
		||||
    /**
 | 
			
		||||
     * Finds the summary file path from the environment, rejects if env var is not found or file does not exist
 | 
			
		||||
     * Also checks r/w permissions.
 | 
			
		||||
     *
 | 
			
		||||
     * @returns step summary file path
 | 
			
		||||
     */
 | 
			
		||||
    private filePath;
 | 
			
		||||
    /**
 | 
			
		||||
     * Wraps content in an HTML tag, adding any HTML attributes
 | 
			
		||||
     *
 | 
			
		||||
     * @param {string} tag HTML tag to wrap
 | 
			
		||||
     * @param {string | null} content content within the tag
 | 
			
		||||
     * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {string} content wrapped in HTML element
 | 
			
		||||
     */
 | 
			
		||||
    private wrap;
 | 
			
		||||
    /**
 | 
			
		||||
     * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default.
 | 
			
		||||
     *
 | 
			
		||||
     * @param {SummaryWriteOptions} [options] (optional) options for write operation
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Promise<Summary>} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    write(options?: SummaryWriteOptions): Promise<Summary>;
 | 
			
		||||
    /**
 | 
			
		||||
     * Clears the summary buffer and wipes the summary file
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    clear(): Promise<Summary>;
 | 
			
		||||
    /**
 | 
			
		||||
     * Returns the current summary buffer as a string
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {string} string of summary buffer
 | 
			
		||||
     */
 | 
			
		||||
    stringify(): string;
 | 
			
		||||
    /**
 | 
			
		||||
     * If the summary buffer is empty
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {boolen} true if the buffer is empty
 | 
			
		||||
     */
 | 
			
		||||
    isEmptyBuffer(): boolean;
 | 
			
		||||
    /**
 | 
			
		||||
     * Resets the summary buffer without writing to summary file
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    emptyBuffer(): Summary;
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds raw text to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @param {string} text content to add
 | 
			
		||||
     * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false)
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addRaw(text: string, addEOL?: boolean): Summary;
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds the operating system-specific end-of-line marker to the buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addEOL(): Summary;
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds an HTML codeblock to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @param {string} code content to render within fenced code block
 | 
			
		||||
     * @param {string} lang (optional) language to syntax highlight code
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addCodeBlock(code: string, lang?: string): Summary;
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds an HTML list to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @param {string[]} items list of items to render
 | 
			
		||||
     * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false)
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addList(items: string[], ordered?: boolean): Summary;
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds an HTML table to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @param {SummaryTableCell[]} rows table rows
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addTable(rows: SummaryTableRow[]): Summary;
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds a collapsable HTML details element to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @param {string} label text for the closed state
 | 
			
		||||
     * @param {string} content collapsable content
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addDetails(label: string, content: string): Summary;
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds an HTML image tag to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @param {string} src path to the image you to embed
 | 
			
		||||
     * @param {string} alt text description of the image
 | 
			
		||||
     * @param {SummaryImageOptions} options (optional) addition image attributes
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addImage(src: string, alt: string, options?: SummaryImageOptions): Summary;
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds an HTML section heading element
 | 
			
		||||
     *
 | 
			
		||||
     * @param {string} text heading text
 | 
			
		||||
     * @param {number | string} [level=1] (optional) the heading level, default: 1
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addHeading(text: string, level?: number | string): Summary;
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds an HTML thematic break (<hr>) to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addSeparator(): Summary;
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds an HTML line break (<br>) to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addBreak(): Summary;
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds an HTML blockquote to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @param {string} text quote text
 | 
			
		||||
     * @param {string} cite (optional) citation url
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addQuote(text: string, cite?: string): Summary;
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds an HTML anchor tag to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @param {string} text link text/content
 | 
			
		||||
     * @param {string} href hyperlink
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addLink(text: string, href: string): Summary;
 | 
			
		||||
}
 | 
			
		||||
/**
 | 
			
		||||
 * @deprecated use `core.summary`
 | 
			
		||||
 */
 | 
			
		||||
export declare const markdownSummary: Summary;
 | 
			
		||||
export declare const summary: Summary;
 | 
			
		||||
export {};
 | 
			
		||||
							
								
								
									
										283
									
								
								node_modules/@actions/core/lib/summary.js
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										283
									
								
								node_modules/@actions/core/lib/summary.js
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,283 @@
 | 
			
		|||
"use strict";
 | 
			
		||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
 | 
			
		||||
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
 | 
			
		||||
    return new (P || (P = Promise))(function (resolve, reject) {
 | 
			
		||||
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
 | 
			
		||||
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
 | 
			
		||||
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
 | 
			
		||||
        step((generator = generator.apply(thisArg, _arguments || [])).next());
 | 
			
		||||
    });
 | 
			
		||||
};
 | 
			
		||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
			
		||||
exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0;
 | 
			
		||||
const os_1 = require("os");
 | 
			
		||||
const fs_1 = require("fs");
 | 
			
		||||
const { access, appendFile, writeFile } = fs_1.promises;
 | 
			
		||||
exports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY';
 | 
			
		||||
exports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary';
 | 
			
		||||
class Summary {
 | 
			
		||||
    constructor() {
 | 
			
		||||
        this._buffer = '';
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Finds the summary file path from the environment, rejects if env var is not found or file does not exist
 | 
			
		||||
     * Also checks r/w permissions.
 | 
			
		||||
     *
 | 
			
		||||
     * @returns step summary file path
 | 
			
		||||
     */
 | 
			
		||||
    filePath() {
 | 
			
		||||
        return __awaiter(this, void 0, void 0, function* () {
 | 
			
		||||
            if (this._filePath) {
 | 
			
		||||
                return this._filePath;
 | 
			
		||||
            }
 | 
			
		||||
            const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR];
 | 
			
		||||
            if (!pathFromEnv) {
 | 
			
		||||
                throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);
 | 
			
		||||
            }
 | 
			
		||||
            try {
 | 
			
		||||
                yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK);
 | 
			
		||||
            }
 | 
			
		||||
            catch (_a) {
 | 
			
		||||
                throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);
 | 
			
		||||
            }
 | 
			
		||||
            this._filePath = pathFromEnv;
 | 
			
		||||
            return this._filePath;
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Wraps content in an HTML tag, adding any HTML attributes
 | 
			
		||||
     *
 | 
			
		||||
     * @param {string} tag HTML tag to wrap
 | 
			
		||||
     * @param {string | null} content content within the tag
 | 
			
		||||
     * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {string} content wrapped in HTML element
 | 
			
		||||
     */
 | 
			
		||||
    wrap(tag, content, attrs = {}) {
 | 
			
		||||
        const htmlAttrs = Object.entries(attrs)
 | 
			
		||||
            .map(([key, value]) => ` ${key}="${value}"`)
 | 
			
		||||
            .join('');
 | 
			
		||||
        if (!content) {
 | 
			
		||||
            return `<${tag}${htmlAttrs}>`;
 | 
			
		||||
        }
 | 
			
		||||
        return `<${tag}${htmlAttrs}>${content}</${tag}>`;
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default.
 | 
			
		||||
     *
 | 
			
		||||
     * @param {SummaryWriteOptions} [options] (optional) options for write operation
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Promise<Summary>} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    write(options) {
 | 
			
		||||
        return __awaiter(this, void 0, void 0, function* () {
 | 
			
		||||
            const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);
 | 
			
		||||
            const filePath = yield this.filePath();
 | 
			
		||||
            const writeFunc = overwrite ? writeFile : appendFile;
 | 
			
		||||
            yield writeFunc(filePath, this._buffer, { encoding: 'utf8' });
 | 
			
		||||
            return this.emptyBuffer();
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Clears the summary buffer and wipes the summary file
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    clear() {
 | 
			
		||||
        return __awaiter(this, void 0, void 0, function* () {
 | 
			
		||||
            return this.emptyBuffer().write({ overwrite: true });
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Returns the current summary buffer as a string
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {string} string of summary buffer
 | 
			
		||||
     */
 | 
			
		||||
    stringify() {
 | 
			
		||||
        return this._buffer;
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * If the summary buffer is empty
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {boolen} true if the buffer is empty
 | 
			
		||||
     */
 | 
			
		||||
    isEmptyBuffer() {
 | 
			
		||||
        return this._buffer.length === 0;
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Resets the summary buffer without writing to summary file
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    emptyBuffer() {
 | 
			
		||||
        this._buffer = '';
 | 
			
		||||
        return this;
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds raw text to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @param {string} text content to add
 | 
			
		||||
     * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false)
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addRaw(text, addEOL = false) {
 | 
			
		||||
        this._buffer += text;
 | 
			
		||||
        return addEOL ? this.addEOL() : this;
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds the operating system-specific end-of-line marker to the buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addEOL() {
 | 
			
		||||
        return this.addRaw(os_1.EOL);
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds an HTML codeblock to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @param {string} code content to render within fenced code block
 | 
			
		||||
     * @param {string} lang (optional) language to syntax highlight code
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addCodeBlock(code, lang) {
 | 
			
		||||
        const attrs = Object.assign({}, (lang && { lang }));
 | 
			
		||||
        const element = this.wrap('pre', this.wrap('code', code), attrs);
 | 
			
		||||
        return this.addRaw(element).addEOL();
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds an HTML list to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @param {string[]} items list of items to render
 | 
			
		||||
     * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false)
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addList(items, ordered = false) {
 | 
			
		||||
        const tag = ordered ? 'ol' : 'ul';
 | 
			
		||||
        const listItems = items.map(item => this.wrap('li', item)).join('');
 | 
			
		||||
        const element = this.wrap(tag, listItems);
 | 
			
		||||
        return this.addRaw(element).addEOL();
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds an HTML table to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @param {SummaryTableCell[]} rows table rows
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addTable(rows) {
 | 
			
		||||
        const tableBody = rows
 | 
			
		||||
            .map(row => {
 | 
			
		||||
            const cells = row
 | 
			
		||||
                .map(cell => {
 | 
			
		||||
                if (typeof cell === 'string') {
 | 
			
		||||
                    return this.wrap('td', cell);
 | 
			
		||||
                }
 | 
			
		||||
                const { header, data, colspan, rowspan } = cell;
 | 
			
		||||
                const tag = header ? 'th' : 'td';
 | 
			
		||||
                const attrs = Object.assign(Object.assign({}, (colspan && { colspan })), (rowspan && { rowspan }));
 | 
			
		||||
                return this.wrap(tag, data, attrs);
 | 
			
		||||
            })
 | 
			
		||||
                .join('');
 | 
			
		||||
            return this.wrap('tr', cells);
 | 
			
		||||
        })
 | 
			
		||||
            .join('');
 | 
			
		||||
        const element = this.wrap('table', tableBody);
 | 
			
		||||
        return this.addRaw(element).addEOL();
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds a collapsable HTML details element to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @param {string} label text for the closed state
 | 
			
		||||
     * @param {string} content collapsable content
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addDetails(label, content) {
 | 
			
		||||
        const element = this.wrap('details', this.wrap('summary', label) + content);
 | 
			
		||||
        return this.addRaw(element).addEOL();
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds an HTML image tag to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @param {string} src path to the image you to embed
 | 
			
		||||
     * @param {string} alt text description of the image
 | 
			
		||||
     * @param {SummaryImageOptions} options (optional) addition image attributes
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addImage(src, alt, options) {
 | 
			
		||||
        const { width, height } = options || {};
 | 
			
		||||
        const attrs = Object.assign(Object.assign({}, (width && { width })), (height && { height }));
 | 
			
		||||
        const element = this.wrap('img', null, Object.assign({ src, alt }, attrs));
 | 
			
		||||
        return this.addRaw(element).addEOL();
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds an HTML section heading element
 | 
			
		||||
     *
 | 
			
		||||
     * @param {string} text heading text
 | 
			
		||||
     * @param {number | string} [level=1] (optional) the heading level, default: 1
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addHeading(text, level) {
 | 
			
		||||
        const tag = `h${level}`;
 | 
			
		||||
        const allowedTag = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(tag)
 | 
			
		||||
            ? tag
 | 
			
		||||
            : 'h1';
 | 
			
		||||
        const element = this.wrap(allowedTag, text);
 | 
			
		||||
        return this.addRaw(element).addEOL();
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds an HTML thematic break (<hr>) to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addSeparator() {
 | 
			
		||||
        const element = this.wrap('hr', null);
 | 
			
		||||
        return this.addRaw(element).addEOL();
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds an HTML line break (<br>) to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addBreak() {
 | 
			
		||||
        const element = this.wrap('br', null);
 | 
			
		||||
        return this.addRaw(element).addEOL();
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds an HTML blockquote to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @param {string} text quote text
 | 
			
		||||
     * @param {string} cite (optional) citation url
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addQuote(text, cite) {
 | 
			
		||||
        const attrs = Object.assign({}, (cite && { cite }));
 | 
			
		||||
        const element = this.wrap('blockquote', text, attrs);
 | 
			
		||||
        return this.addRaw(element).addEOL();
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Adds an HTML anchor tag to the summary buffer
 | 
			
		||||
     *
 | 
			
		||||
     * @param {string} text link text/content
 | 
			
		||||
     * @param {string} href hyperlink
 | 
			
		||||
     *
 | 
			
		||||
     * @returns {Summary} summary instance
 | 
			
		||||
     */
 | 
			
		||||
    addLink(text, href) {
 | 
			
		||||
        const element = this.wrap('a', text, { href });
 | 
			
		||||
        return this.addRaw(element).addEOL();
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
const _summary = new Summary();
 | 
			
		||||
/**
 | 
			
		||||
 * @deprecated use `core.summary`
 | 
			
		||||
 */
 | 
			
		||||
exports.markdownSummary = _summary;
 | 
			
		||||
exports.summary = _summary;
 | 
			
		||||
//# sourceMappingURL=summary.js.map
 | 
			
		||||
							
								
								
									
										1
									
								
								node_modules/@actions/core/lib/summary.js.map
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								node_modules/@actions/core/lib/summary.js.map
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										9
									
								
								node_modules/@actions/core/lib/utils.d.ts
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								node_modules/@actions/core/lib/utils.d.ts
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,5 +1,14 @@
 | 
			
		|||
import { AnnotationProperties } from './core';
 | 
			
		||||
import { CommandProperties } from './command';
 | 
			
		||||
/**
 | 
			
		||||
 * Sanitizes an input into a string so it can be passed into issueCommand safely
 | 
			
		||||
 * @param input input to sanitize into a string
 | 
			
		||||
 */
 | 
			
		||||
export declare function toCommandValue(input: any): string;
 | 
			
		||||
/**
 | 
			
		||||
 *
 | 
			
		||||
 * @param annotationProperties
 | 
			
		||||
 * @returns The command properties to send with the actual annotation command
 | 
			
		||||
 * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
 | 
			
		||||
 */
 | 
			
		||||
export declare function toCommandProperties(annotationProperties: AnnotationProperties): CommandProperties;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										21
									
								
								node_modules/@actions/core/lib/utils.js
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										21
									
								
								node_modules/@actions/core/lib/utils.js
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
// We use any as a valid input type
 | 
			
		||||
/* eslint-disable @typescript-eslint/no-explicit-any */
 | 
			
		||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
			
		||||
exports.toCommandProperties = exports.toCommandValue = void 0;
 | 
			
		||||
/**
 | 
			
		||||
 * Sanitizes an input into a string so it can be passed into issueCommand safely
 | 
			
		||||
 * @param input input to sanitize into a string
 | 
			
		||||
| 
						 | 
				
			
			@ -16,4 +17,24 @@ function toCommandValue(input) {
 | 
			
		|||
    return JSON.stringify(input);
 | 
			
		||||
}
 | 
			
		||||
exports.toCommandValue = toCommandValue;
 | 
			
		||||
/**
 | 
			
		||||
 *
 | 
			
		||||
 * @param annotationProperties
 | 
			
		||||
 * @returns The command properties to send with the actual annotation command
 | 
			
		||||
 * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
 | 
			
		||||
 */
 | 
			
		||||
function toCommandProperties(annotationProperties) {
 | 
			
		||||
    if (!Object.keys(annotationProperties).length) {
 | 
			
		||||
        return {};
 | 
			
		||||
    }
 | 
			
		||||
    return {
 | 
			
		||||
        title: annotationProperties.title,
 | 
			
		||||
        file: annotationProperties.file,
 | 
			
		||||
        line: annotationProperties.startLine,
 | 
			
		||||
        endLine: annotationProperties.endLine,
 | 
			
		||||
        col: annotationProperties.startColumn,
 | 
			
		||||
        endColumn: annotationProperties.endColumn
 | 
			
		||||
    };
 | 
			
		||||
}
 | 
			
		||||
exports.toCommandProperties = toCommandProperties;
 | 
			
		||||
//# sourceMappingURL=utils.js.map
 | 
			
		||||
							
								
								
									
										2
									
								
								node_modules/@actions/core/lib/utils.js.map
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								node_modules/@actions/core/lib/utils.js.map
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1 +1 @@
 | 
			
		|||
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA,mCAAmC;AACnC,uDAAuD;;AAEvD;;;GAGG;AACH,SAAgB,cAAc,CAAC,KAAU;IACvC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;QACzC,OAAO,EAAE,CAAA;KACV;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,YAAY,MAAM,EAAE;QAC/D,OAAO,KAAe,CAAA;KACvB;IACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;AAC9B,CAAC;AAPD,wCAOC"}
 | 
			
		||||
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA,mCAAmC;AACnC,uDAAuD;;;AAKvD;;;GAGG;AACH,SAAgB,cAAc,CAAC,KAAU;IACvC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;QACzC,OAAO,EAAE,CAAA;KACV;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,YAAY,MAAM,EAAE;QAC/D,OAAO,KAAe,CAAA;KACvB;IACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;AAC9B,CAAC;AAPD,wCAOC;AAED;;;;;GAKG;AACH,SAAgB,mBAAmB,CACjC,oBAA0C;IAE1C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,MAAM,EAAE;QAC7C,OAAO,EAAE,CAAA;KACV;IAED,OAAO;QACL,KAAK,EAAE,oBAAoB,CAAC,KAAK;QACjC,IAAI,EAAE,oBAAoB,CAAC,IAAI;QAC/B,IAAI,EAAE,oBAAoB,CAAC,SAAS;QACpC,OAAO,EAAE,oBAAoB,CAAC,OAAO;QACrC,GAAG,EAAE,oBAAoB,CAAC,WAAW;QACrC,SAAS,EAAE,oBAAoB,CAAC,SAAS;KAC1C,CAAA;AACH,CAAC;AAfD,kDAeC"}
 | 
			
		||||
							
								
								
									
										66
									
								
								node_modules/@actions/core/package.json
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										66
									
								
								node_modules/@actions/core/package.json
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,38 +1,16 @@
 | 
			
		|||
{
 | 
			
		||||
  "_from": "@actions/core@1.2.6",
 | 
			
		||||
  "_id": "@actions/core@1.2.6",
 | 
			
		||||
  "_inBundle": false,
 | 
			
		||||
  "_integrity": "sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA==",
 | 
			
		||||
  "_location": "/@actions/core",
 | 
			
		||||
  "_phantomChildren": {},
 | 
			
		||||
  "_requested": {
 | 
			
		||||
    "type": "version",
 | 
			
		||||
    "registry": true,
 | 
			
		||||
    "raw": "@actions/core@1.2.6",
 | 
			
		||||
    "name": "@actions/core",
 | 
			
		||||
    "escapedName": "@actions%2fcore",
 | 
			
		||||
    "scope": "@actions",
 | 
			
		||||
    "rawSpec": "1.2.6",
 | 
			
		||||
    "saveSpec": null,
 | 
			
		||||
    "fetchSpec": "1.2.6"
 | 
			
		||||
  },
 | 
			
		||||
  "_requiredBy": [
 | 
			
		||||
    "#USER",
 | 
			
		||||
    "/"
 | 
			
		||||
  ],
 | 
			
		||||
  "_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.6.tgz",
 | 
			
		||||
  "_shasum": "a78d49f41a4def18e88ce47c2cac615d5694bf09",
 | 
			
		||||
  "_spec": "@actions/core@1.2.6",
 | 
			
		||||
  "_where": "/home/dawidd6/github/dawidd6/action-debian-package",
 | 
			
		||||
  "bugs": {
 | 
			
		||||
    "url": "https://github.com/actions/toolkit/issues"
 | 
			
		||||
  },
 | 
			
		||||
  "bundleDependencies": false,
 | 
			
		||||
  "deprecated": false,
 | 
			
		||||
  "name": "@actions/core",
 | 
			
		||||
  "version": "1.10.0",
 | 
			
		||||
  "description": "Actions core lib",
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "@types/node": "^12.0.2"
 | 
			
		||||
  },
 | 
			
		||||
  "keywords": [
 | 
			
		||||
    "github",
 | 
			
		||||
    "actions",
 | 
			
		||||
    "core"
 | 
			
		||||
  ],
 | 
			
		||||
  "homepage": "https://github.com/actions/toolkit/tree/main/packages/core",
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "main": "lib/core.js",
 | 
			
		||||
  "types": "lib/core.d.ts",
 | 
			
		||||
  "directories": {
 | 
			
		||||
    "lib": "lib",
 | 
			
		||||
    "test": "__tests__"
 | 
			
		||||
| 
						 | 
				
			
			@ -41,15 +19,6 @@
 | 
			
		|||
    "lib",
 | 
			
		||||
    "!.DS_Store"
 | 
			
		||||
  ],
 | 
			
		||||
  "homepage": "https://github.com/actions/toolkit/tree/main/packages/core",
 | 
			
		||||
  "keywords": [
 | 
			
		||||
    "github",
 | 
			
		||||
    "actions",
 | 
			
		||||
    "core"
 | 
			
		||||
  ],
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "main": "lib/core.js",
 | 
			
		||||
  "name": "@actions/core",
 | 
			
		||||
  "publishConfig": {
 | 
			
		||||
    "access": "public"
 | 
			
		||||
  },
 | 
			
		||||
| 
						 | 
				
			
			@ -63,6 +32,15 @@
 | 
			
		|||
    "test": "echo \"Error: run tests from root\" && exit 1",
 | 
			
		||||
    "tsc": "tsc"
 | 
			
		||||
  },
 | 
			
		||||
  "types": "lib/core.d.ts",
 | 
			
		||||
  "version": "1.2.6"
 | 
			
		||||
  "bugs": {
 | 
			
		||||
    "url": "https://github.com/actions/toolkit/issues"
 | 
			
		||||
  },
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "@actions/http-client": "^2.0.1",
 | 
			
		||||
    "uuid": "^8.3.2"
 | 
			
		||||
  },
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "@types/node": "^12.0.2",
 | 
			
		||||
    "@types/uuid": "^8.3.4"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue