File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ RUN apk add --update --no-cache \
14
14
less \
15
15
make \
16
16
openssl \
17
+ openssh-keygen \
17
18
shellcheck \
18
19
util-linux
19
20
@@ -86,7 +87,14 @@ secretshare-all:
86
87
COPY +secretshare-darwin/secretshare ./secretshare-darwin-amd64
87
88
SAVE ARTIFACT ./*
88
89
90
+ test :
91
+ COPY +secretshare-linux/secretshare ./secretshare
92
+ RUN ./secretshare
93
+ RUN bash -c "echo -n hello | openssl pkeyutl -encrypt -pubin -inkey <(ssh-keygen -f ~/.secretshare.pub -e -m PKCS8) -pkeyopt rsa_padding_mode:oaep -pkeyopt rsa_oaep_md:sha256 -pkeyopt rsa_mgf1_md:sha256 | base64 | ./secretshare decrypt > output"
94
+ RUN bash -c "diff output <( echo -n hello)"
95
+
89
96
release :
97
+ BUILD +test
90
98
FROM node:13.10.1-alpine3.11
91
99
RUN npm install -g github-release-cli@v1.3.1
92
100
WORKDIR /release
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ func main() {
188
188
fmt .Fprintf (os .Stderr , "failed while decrypting: %s" , err .Error ())
189
189
os .Exit (1 )
190
190
}
191
- fmt .Println ( data2 )
191
+ fmt .Printf ( "%s" , data2 )
192
192
return
193
193
}
194
194
@@ -197,5 +197,5 @@ func main() {
197
197
fmt .Fprintf (os .Stderr , "failed while encrypting: %s" , err .Error ())
198
198
os .Exit (1 )
199
199
}
200
- fmt .Println ( encrypted )
200
+ fmt .Printf ( "%s" , encrypted )
201
201
}
You can’t perform that action at this time.
0 commit comments