Skip to content

Commit

Permalink
output added #3481
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-dmlr committed Oct 28, 2024
1 parent 2553912 commit 0acaac3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions github-actions/scan/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29396,6 +29396,7 @@ function setOutput(field, value, dataFormat) {
throw new Error(`No access to file ${filePath}`);
}
external_fs_.appendFileSync(filePath, `${field}=${valuestring}${external_os_.EOL}`);
external_fs_.appendFileSync(filePath, `greeting=Hello SecHub${external_os_.EOL}`);
// core.setOutput(field, value.toString()); // Ensure value is converted to a string as GitHub Actions expects output variables to be strings.
}

Expand Down
1 change: 1 addition & 0 deletions github-actions/scan/src/post-scan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,5 +291,6 @@ function setOutput(field: string, value: any, dataFormat: string) {
throw new Error(`No access to file ${filePath}`);
}
fs.appendFileSync(filePath, `${field}=${valuestring}${os.EOL}`);
fs.appendFileSync(filePath, `greeting=Hello SecHub${os.EOL}`);
// core.setOutput(field, value.toString()); // Ensure value is converted to a string as GitHub Actions expects output variables to be strings.
}

0 comments on commit 0acaac3

Please sign in to comment.