mirror of
https://github.com/docker/build-push-action.git
synced 2026-09-11 05:34:22 +02:00
Merge pull request #1617 from crazy-max/fix-metadata-workflow-commands
prevent workflow command injection in metadata logs
This commit is contained in:
+26
-26
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -137,7 +137,7 @@ actionsToolkit.run(
|
|||||||
if (metadata) {
|
if (metadata) {
|
||||||
await core.group(`Metadata`, async () => {
|
await core.group(`Metadata`, async () => {
|
||||||
const metadatadt = JSON.stringify(metadata, null, 2);
|
const metadatadt = JSON.stringify(metadata, null, 2);
|
||||||
core.info(metadatadt);
|
GitHub.printUntrusted(metadatadt);
|
||||||
core.setOutput('metadata', metadatadt);
|
core.setOutput('metadata', metadatadt);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user