Skip to content

Commit a31c4da

Browse files
committed
Fix script injection
1 parent b60d4d4 commit a31c4da

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ jobs:
102102
password: ${{ secrets.DOCKERHUB_TOKEN }}
103103

104104
- name: Print build metadata
105-
run: echo "${{ toJson(steps.meta.outputs) }}"
105+
env:
106+
META_JSON: ${{ toJson(steps.meta.outputs) }}
107+
run: echo "$META_JSON"
106108

107109
- name: Build and push Docker image by digest
108110
id: build
@@ -119,7 +121,9 @@ jobs:
119121
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=false,name-canonical=true,push=true
120122

121123
- name: Print build output
122-
run: echo "${{ toJson(steps.build.outputs) }}"
124+
env:
125+
BUILD_JSON: ${{ toJson(steps.build.outputs) }}
126+
run: echo "$BUILD_JSON"
123127

124128
- name: Export digest
125129
run: |

0 commit comments

Comments
 (0)