@@ -27831,6 +27831,42 @@ var __webpack_exports__ = {};
2783127831
2783227832;// CONCATENATED MODULE: external "os"
2783327833const external_os_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("os");
27834+ ;// CONCATENATED MODULE: ./node_modules/@actions/core/lib/utils.js
27835+ // We use any as a valid input type
27836+ /* eslint-disable @typescript-eslint/no-explicit-any */
27837+ /**
27838+ * Sanitizes an input into a string so it can be passed into issueCommand safely
27839+ * @param input input to sanitize into a string
27840+ */
27841+ function utils_toCommandValue(input) {
27842+ if (input === null || input === undefined) {
27843+ return '';
27844+ }
27845+ else if (typeof input === 'string' || input instanceof String) {
27846+ return input;
27847+ }
27848+ return JSON.stringify(input);
27849+ }
27850+ /**
27851+ *
27852+ * @param annotationProperties
27853+ * @returns The command properties to send with the actual annotation command
27854+ * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
27855+ */
27856+ function utils_toCommandProperties(annotationProperties) {
27857+ if (!Object.keys(annotationProperties).length) {
27858+ return {};
27859+ }
27860+ return {
27861+ title: annotationProperties.title,
27862+ file: annotationProperties.file,
27863+ line: annotationProperties.startLine,
27864+ endLine: annotationProperties.endLine,
27865+ col: annotationProperties.startColumn,
27866+ endColumn: annotationProperties.endColumn
27867+ };
27868+ }
27869+ //# sourceMappingURL=utils.js.map
2783427870;// CONCATENATED MODULE: ./node_modules/@actions/core/lib/command.js
2783527871
2783627872
@@ -27869,7 +27905,7 @@ const external_os_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta
2786927905 */
2787027906function command_issueCommand(command, properties, message) {
2787127907 const cmd = new Command(command, properties, message);
27872- process.stdout.write(cmd.toString() + os .EOL);
27908+ process.stdout.write(cmd.toString() + external_os_namespaceObject .EOL);
2787327909}
2787427910function command_issue(name, message = '') {
2787527911 command_issueCommand(name, {}, message);
@@ -27909,13 +27945,13 @@ class Command {
2790927945 }
2791027946}
2791127947function escapeData(s) {
27912- return toCommandValue (s)
27948+ return utils_toCommandValue (s)
2791327949 .replace(/%/g, '%25')
2791427950 .replace(/\r/g, '%0D')
2791527951 .replace(/\n/g, '%0A');
2791627952}
2791727953function escapeProperty(s) {
27918- return toCommandValue (s)
27954+ return utils_toCommandValue (s)
2791927955 .replace(/%/g, '%25')
2792027956 .replace(/\r/g, '%0D')
2792127957 .replace(/\n/g, '%0A')
@@ -27940,16 +27976,16 @@ function file_command_issueFileCommand(command, message) {
2794027976 if (!filePath) {
2794127977 throw new Error(`Unable to find environment variable for file command ${command}`);
2794227978 }
27943- if (!fs .existsSync(filePath)) {
27979+ if (!external_fs_namespaceObject .existsSync(filePath)) {
2794427980 throw new Error(`Missing file at path: ${filePath}`);
2794527981 }
27946- fs .appendFileSync(filePath, `${toCommandValue (message)}${os .EOL}`, {
27982+ external_fs_namespaceObject .appendFileSync(filePath, `${utils_toCommandValue (message)}${external_os_namespaceObject .EOL}`, {
2794727983 encoding: 'utf8'
2794827984 });
2794927985}
2795027986function file_command_prepareKeyValueMessage(key, value) {
27951- const delimiter = `ghadelimiter_${crypto .randomUUID()}`;
27952- const convertedValue = toCommandValue (value);
27987+ const delimiter = `ghadelimiter_${external_crypto_namespaceObject .randomUUID()}`;
27988+ const convertedValue = utils_toCommandValue (value);
2795327989 // These should realistically never happen, but just in case someone finds a
2795427990 // way to exploit uuid generation let's not allow keys or values that contain
2795527991 // the delimiter.
@@ -27959,7 +27995,7 @@ function file_command_prepareKeyValueMessage(key, value) {
2795927995 if (convertedValue.includes(delimiter)) {
2796027996 throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`);
2796127997 }
27962- return `${key}<<${delimiter}${os .EOL}${convertedValue}${os .EOL}${delimiter}`;
27998+ return `${key}<<${delimiter}${external_os_namespaceObject .EOL}${convertedValue}${external_os_namespaceObject .EOL}${delimiter}`;
2796327999}
2796428000//# sourceMappingURL=file-command.js.map
2796528001;// CONCATENATED MODULE: external "path"
@@ -30581,10 +30617,10 @@ function getBooleanInput(name, options) {
3058130617function setOutput(name, value) {
3058230618 const filePath = process.env['GITHUB_OUTPUT'] || '';
3058330619 if (filePath) {
30584- return issueFileCommand ('OUTPUT', prepareKeyValueMessage (name, value));
30620+ return file_command_issueFileCommand ('OUTPUT', file_command_prepareKeyValueMessage (name, value));
3058530621 }
30586- process.stdout.write(os .EOL);
30587- issueCommand ('set-output', { name }, toCommandValue (value));
30622+ process.stdout.write(external_os_namespaceObject .EOL);
30623+ command_issueCommand ('set-output', { name }, utils_toCommandValue (value));
3058830624}
3058930625/**
3059030626 * Enables or disables the echoing of commands into stdout for the rest of the step.
@@ -30754,6 +30790,9 @@ function getIDToken(aud) {
3075430790// -----------------------------------------------------------------------------
3075530791function run() {
3075630792 info('Monitor start is handled by the pre hook. Main step is a no-op.');
30793+ const mainMarker = 'main-marker';
30794+ setOutput('main_marker', mainMarker);
30795+ info(`Main marker output set: ${mainMarker}`);
3075730796}
3075830797// -----------------------------------------------------------------------------
3075930798// Run
0 commit comments