Skip to content

Commit 94d4b29

Browse files
authored
consume gitsign verify library (#230)
* consume gitsign verify rather than cp removes the need to replace items in go.mod, since sigstore/gitsign now has updated versions. Signed-off-by: Sally O'Malley <[email protected]> * bump go version to at least 1.17 update workflows to ensure 'go mod tidy' runs with go 1.17, not 1.16 (other option is to update go version to 1.18, not currently available in GH workflow) Signed-off-by: Sally O'Malley <[email protected]> Signed-off-by: Sally O'Malley <[email protected]>
1 parent 8169f37 commit 94d4b29

File tree

4 files changed

+162
-1089
lines changed

4 files changed

+162
-1089
lines changed

.github/workflows/docker-image.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
run: sudo apt install curl
7676

7777
- name: Build the image
78-
run: go mod tidy && go mod vendor && docker build . --file Dockerfile --tag quay.io/fetchit/fetchit-amd:latest
78+
run: go mod tidy -compat=1.17 && go mod vendor && docker build . --file Dockerfile --tag quay.io/fetchit/fetchit-amd:latest
7979

8080
- name: Export image
8181
run: docker save -o /tmp/fetchit.tar quay.io/fetchit/fetchit-amd:latest
@@ -92,7 +92,7 @@ jobs:
9292
- uses: actions/checkout@v2
9393

9494
- name: Build the image
95-
run: go mod tidy && go mod vendor && make build-ansible-cross-build-linux-amd64
95+
run: go mod tidy -compat=1.17 && go mod vendor && make build-ansible-cross-build-linux-amd64
9696

9797
- name: docker list images
9898
run: docker images
@@ -122,7 +122,7 @@ jobs:
122122
run: sudo apt install podman build-essential qemu-user qemu-user-static
123123

124124
- name: Build the image
125-
run: go mod tidy && go mod vendor && CTR_CMD=podman make build-ansible-cross-build-linux-arm64
125+
run: go mod tidy -compat=1.17 && go mod vendor && CTR_CMD=podman make build-ansible-cross-build-linux-arm64
126126

127127
- name: Export image
128128
run: podman save -o /tmp/ansible-arm.tar quay.io/fetchit/fetchit-ansible-arm:latest
@@ -154,7 +154,7 @@ jobs:
154154
- uses: actions/checkout@v2
155155

156156
- name: Build the image
157-
run: go mod tidy && go mod vendor && make build-systemd-cross-build-linux-amd64
157+
run: go mod tidy -compat=1.17 && go mod vendor && make build-systemd-cross-build-linux-amd64
158158

159159
- name: docker list images
160160
run: docker images
@@ -184,7 +184,7 @@ jobs:
184184
run: sudo apt install podman build-essential qemu-user qemu-user-static
185185

186186
- name: Build the image
187-
run: go mod tidy && go mod vendor && CTR_CMD=podman make build-systemd-cross-build-linux-arm64
187+
run: go mod tidy -compat=1.17 && go mod vendor && CTR_CMD=podman make build-systemd-cross-build-linux-arm64
188188

189189
- name: Export image
190190
run: podman save -o /tmp/systemd-arm.tar quay.io/fetchit/fetchit-systemd-arm:latest
@@ -1601,7 +1601,7 @@ jobs:
16011601
run: sudo apt install podman build-essential qemu-user qemu-user-static
16021602

16031603
- name: Build the arm image
1604-
run: go mod tidy && go mod vendor && CTR_CMD=podman make build-containerized-cross-build-linux-arm64
1604+
run: go mod tidy -compat=1.17 && go mod vendor && CTR_CMD=podman make build-containerized-cross-build-linux-arm64
16051605

16061606
- name: Export image
16071607
run: podman save -o /tmp/fetchit-arm.tar quay.io/fetchit/fetchit-arm:latest

go.mod

Lines changed: 47 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,6 @@ module github.com/containers/fetchit
22

33
go 1.17
44

5-
replace (
6-
go.opentelemetry.io/contrib => go.opentelemetry.io/contrib v1.6.0
7-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc => go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.20.0
8-
go.opentelemetry.io/otel => go.opentelemetry.io/otel v0.20.0
9-
go.opentelemetry.io/otel/exporters/otlp => go.opentelemetry.io/otel/exporters/otlp v0.20.0
10-
go.opentelemetry.io/otel/metric => go.opentelemetry.io/otel/metric v0.20.0
11-
go.opentelemetry.io/otel/sdk => go.opentelemetry.io/otel/sdk v0.20.0
12-
go.opentelemetry.io/otel/sdk/export/metric => go.opentelemetry.io/otel/sdk/export/metric v0.20.0
13-
go.opentelemetry.io/otel/sdk/metric => go.opentelemetry.io/otel/sdk/metric v0.20.0
14-
go.opentelemetry.io/otel/trace => go.opentelemetry.io/otel/trace v0.20.0
15-
go.opentelemetry.io/proto/otlp => go.opentelemetry.io/proto/otlp v0.12.0
16-
)
17-
185
require (
196
github.com/containers/common v0.48.0
207
github.com/containers/podman/v4 v4.1.1
@@ -24,12 +11,11 @@ require (
2411
github.com/natefinch/lumberjack v2.0.0+incompatible
2512
github.com/opencontainers/runtime-spec v1.0.3-0.20211214071223-8958f93039ab
2613
github.com/openshift/build-machinery-go v0.0.0-20220121085309-f94edc2d6874
27-
github.com/sigstore/gitsign v0.2.0
28-
github.com/sigstore/rekor v0.10.0
29-
github.com/sigstore/sigstore v1.3.1
14+
github.com/sigstore/gitsign v0.3.0
15+
github.com/sigstore/rekor v0.11.0
3016
github.com/spf13/cobra v1.5.0
3117
github.com/spf13/viper v1.12.0
32-
go.uber.org/zap v1.21.0
18+
go.uber.org/zap v1.22.0
3319
gopkg.in/yaml.v3 v3.0.1
3420
k8s.io/api v0.23.5
3521
k8s.io/apimachinery v0.23.5
@@ -38,10 +24,7 @@ require (
3824

3925
require (
4026
bitbucket.org/creachadair/shell v0.0.7 // indirect
41-
cloud.google.com/go v0.103.0 // indirect
4227
cloud.google.com/go/compute v1.7.0 // indirect
43-
cloud.google.com/go/iam v0.3.0 // indirect
44-
cloud.google.com/go/storage v1.23.0 // indirect
4528
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
4629
github.com/BurntSushi/toml v1.1.0 // indirect
4730
github.com/Microsoft/go-winio v0.5.2 // indirect
@@ -55,6 +38,7 @@ require (
5538
github.com/beorn7/perks v1.0.1 // indirect
5639
github.com/bgentry/speakeasy v0.1.0 // indirect
5740
github.com/blang/semver v3.5.1+incompatible // indirect
41+
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
5842
github.com/census-instrumentation/opencensus-proto v0.3.0 // indirect
5943
github.com/cespare/xxhash/v2 v2.1.2 // indirect
6044
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect
@@ -74,6 +58,7 @@ require (
7458
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
7559
github.com/cyberphone/json-canonicalization v0.0.0-20210823021906-dc406ceaf94b // indirect
7660
github.com/cyphar/filepath-securejoin v0.2.3 // indirect
61+
github.com/davecgh/go-spew v1.1.1 // indirect
7762
github.com/disiqueira/gotree/v3 v3.0.2 // indirect
7863
github.com/docker/cli v20.10.17+incompatible // indirect
7964
github.com/docker/distribution v2.8.1+incompatible // indirect
@@ -86,57 +71,56 @@ require (
8671
github.com/emirpasic/gods v1.12.0 // indirect
8772
github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1 // indirect
8873
github.com/envoyproxy/protoc-gen-validate v0.6.2 // indirect
89-
github.com/form3tech-oss/jwt-go v3.2.5+incompatible // indirect
9074
github.com/fsnotify/fsnotify v1.5.4 // indirect
9175
github.com/fullstorydev/grpcurl v1.8.6 // indirect
9276
github.com/ghodss/yaml v1.0.0 // indirect
9377
github.com/github/smimesign v0.2.0 // indirect
9478
github.com/go-chi/chi v4.1.2+incompatible // indirect
9579
github.com/go-git/gcfg v1.5.0 // indirect
9680
github.com/go-git/go-billy/v5 v5.3.1 // indirect
97-
github.com/go-logr/logr v1.2.2 // indirect
98-
github.com/go-openapi/analysis v0.21.2 // indirect
99-
github.com/go-openapi/errors v0.20.2 // indirect
81+
github.com/go-logr/logr v1.2.3 // indirect
82+
github.com/go-logr/stdr v1.2.2 // indirect
83+
github.com/go-openapi/analysis v0.21.4 // indirect
84+
github.com/go-openapi/errors v0.20.3 // indirect
10085
github.com/go-openapi/jsonpointer v0.19.5 // indirect
10186
github.com/go-openapi/jsonreference v0.20.0 // indirect
102-
github.com/go-openapi/loads v0.21.1 // indirect
87+
github.com/go-openapi/loads v0.21.2 // indirect
10388
github.com/go-openapi/runtime v0.24.1 // indirect
104-
github.com/go-openapi/spec v0.20.6 // indirect
89+
github.com/go-openapi/spec v0.20.7 // indirect
10590
github.com/go-openapi/strfmt v0.21.3 // indirect
106-
github.com/go-openapi/swag v0.22.0 // indirect
91+
github.com/go-openapi/swag v0.22.3 // indirect
10792
github.com/go-openapi/validate v0.22.0 // indirect
10893
github.com/go-playground/locales v0.14.0 // indirect
10994
github.com/go-playground/universal-translator v0.18.0 // indirect
11095
github.com/go-playground/validator/v10 v10.11.0 // indirect
11196
github.com/godbus/dbus/v5 v5.1.0 // indirect
11297
github.com/gogo/protobuf v1.3.2 // indirect
98+
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
11399
github.com/golang/glog v1.0.0 // indirect
114100
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
115101
github.com/golang/mock v1.6.0 // indirect
116102
github.com/golang/protobuf v1.5.2 // indirect
117103
github.com/golang/snappy v0.0.4 // indirect
118104
github.com/google/btree v1.0.1 // indirect
119-
github.com/google/certificate-transparency-go v1.1.2 // indirect
105+
github.com/google/certificate-transparency-go v1.1.3 // indirect
120106
github.com/google/go-cmp v0.5.8 // indirect
121107
github.com/google/go-containerregistry v0.11.0 // indirect
122108
github.com/google/go-intervals v0.0.2 // indirect
123109
github.com/google/gofuzz v1.2.0 // indirect
124110
github.com/google/trillian v1.4.1 // indirect
125111
github.com/google/uuid v1.3.0 // indirect
126-
github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect
127-
github.com/googleapis/gax-go/v2 v2.4.0 // indirect
128-
github.com/googleapis/go-type-adapters v1.0.0 // indirect
129112
github.com/gorilla/mux v1.8.0 // indirect
130113
github.com/gorilla/schema v1.2.0 // indirect
131114
github.com/gorilla/websocket v1.4.2 // indirect
132115
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
133116
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
134117
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
118+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect
135119
github.com/hashicorp/errwrap v1.1.0 // indirect
136120
github.com/hashicorp/go-multierror v1.1.1 // indirect
137121
github.com/hashicorp/hcl v1.0.0 // indirect
138122
github.com/imdario/mergo v0.3.12 // indirect
139-
github.com/in-toto/in-toto-golang v0.3.4-0.20211211042327-af1f9fb822bf // indirect
123+
github.com/in-toto/in-toto-golang v0.3.4-0.20220709202702-fa494aaa0add // indirect
140124
github.com/inconshreveable/mousetrap v1.0.0 // indirect
141125
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
142126
github.com/jedisct1/go-minisign v0.0.0-20211028175153-1c139d1cc84b // indirect
@@ -177,26 +161,29 @@ require (
177161
github.com/pelletier/go-toml v1.9.5 // indirect
178162
github.com/pelletier/go-toml/v2 v2.0.1 // indirect
179163
github.com/pkg/errors v0.9.1 // indirect
164+
github.com/pmezard/go-difflib v1.0.0 // indirect
180165
github.com/proglottis/gpgme v0.1.1 // indirect
181-
github.com/prometheus/client_golang v1.12.2 // indirect
166+
github.com/prometheus/client_golang v1.13.0 // indirect
182167
github.com/prometheus/client_model v0.2.0 // indirect
183-
github.com/prometheus/common v0.34.0 // indirect
184-
github.com/prometheus/procfs v0.7.3 // indirect
168+
github.com/prometheus/common v0.37.0 // indirect
169+
github.com/prometheus/procfs v0.8.0 // indirect
185170
github.com/rivo/uniseg v0.2.0 // indirect
186171
github.com/robfig/cron/v3 v3.0.1 // indirect
187172
github.com/russross/blackfriday/v2 v2.1.0 // indirect
188173
github.com/sassoftware/relic v0.0.0-20210427151427-dfb082b79b74 // indirect
189174
github.com/secure-systems-lab/go-securesystemslib v0.4.0 // indirect
190175
github.com/sergi/go-diff v1.2.0 // indirect
191176
github.com/shibumi/go-pathspec v1.3.0 // indirect
192-
github.com/sigstore/cosign v1.8.1-0.20220601172726-ae90c7495df6 // indirect
177+
github.com/sigstore/cosign v1.11.0 // indirect
178+
github.com/sigstore/sigstore v1.4.0 // indirect
193179
github.com/sirupsen/logrus v1.9.0 // indirect
194180
github.com/soheilhy/cmux v0.1.5 // indirect
195181
github.com/spf13/afero v1.8.2 // indirect
196182
github.com/spf13/cast v1.5.0 // indirect
197183
github.com/spf13/jwalterweatherman v1.1.0 // indirect
198184
github.com/spf13/pflag v1.0.5 // indirect
199185
github.com/stefanberger/go-pkcs11uri v0.0.0-20201008174630-78d3cae3a980 // indirect
186+
github.com/stretchr/testify v1.8.0 // indirect
200187
github.com/subosito/gotenv v1.3.0 // indirect
201188
github.com/sylabs/sif/v2 v2.7.0 // indirect
202189
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635 // indirect
@@ -217,59 +204,54 @@ require (
217204
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
218205
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect
219206
go.etcd.io/bbolt v1.3.6 // indirect
220-
go.etcd.io/etcd/api/v3 v3.5.4 // indirect
221-
go.etcd.io/etcd/client/pkg/v3 v3.5.4 // indirect
222-
go.etcd.io/etcd/client/v2 v2.305.4 // indirect
223-
go.etcd.io/etcd/client/v3 v3.5.4 // indirect
224-
go.etcd.io/etcd/etcdctl/v3 v3.5.4 // indirect
225-
go.etcd.io/etcd/etcdutl/v3 v3.5.4 // indirect
226-
go.etcd.io/etcd/pkg/v3 v3.5.4 // indirect
227-
go.etcd.io/etcd/raft/v3 v3.5.4 // indirect
228-
go.etcd.io/etcd/server/v3 v3.5.4 // indirect
229-
go.etcd.io/etcd/tests/v3 v3.5.4 // indirect
230-
go.etcd.io/etcd/v3 v3.5.4 // indirect
207+
go.etcd.io/etcd/api/v3 v3.6.0-alpha.0 // indirect
208+
go.etcd.io/etcd/client/pkg/v3 v3.6.0-alpha.0 // indirect
209+
go.etcd.io/etcd/client/v2 v2.306.0-alpha.0 // indirect
210+
go.etcd.io/etcd/client/v3 v3.6.0-alpha.0 // indirect
211+
go.etcd.io/etcd/etcdctl/v3 v3.6.0-alpha.0 // indirect
212+
go.etcd.io/etcd/etcdutl/v3 v3.6.0-alpha.0 // indirect
213+
go.etcd.io/etcd/pkg/v3 v3.6.0-alpha.0 // indirect
214+
go.etcd.io/etcd/raft/v3 v3.6.0-alpha.0 // indirect
215+
go.etcd.io/etcd/server/v3 v3.6.0-alpha.0 // indirect
216+
go.etcd.io/etcd/tests/v3 v3.6.0-alpha.0 // indirect
217+
go.etcd.io/etcd/v3 v3.6.0-alpha.0 // indirect
231218
go.mongodb.org/mongo-driver v1.10.0 // indirect
232219
go.mozilla.org/pkcs7 v0.0.0-20200128120323-432b2356ecb1 // indirect
233220
go.opencensus.io v0.23.0 // indirect
234-
go.opentelemetry.io/contrib v1.6.0 // indirect
235221
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.28.0 // indirect
236-
go.opentelemetry.io/otel v1.3.0 // indirect
237-
go.opentelemetry.io/otel/exporters/otlp v0.20.0 // indirect
238-
go.opentelemetry.io/otel/metric v0.20.0 // indirect
239-
go.opentelemetry.io/otel/sdk v1.3.0 // indirect
240-
go.opentelemetry.io/otel/sdk/export/metric v0.20.0 // indirect
241-
go.opentelemetry.io/otel/sdk/metric v0.20.0 // indirect
242-
go.opentelemetry.io/otel/trace v1.3.0 // indirect
243-
go.opentelemetry.io/proto/otlp v0.12.0 // indirect
244-
go.uber.org/atomic v1.9.0 // indirect
222+
go.opentelemetry.io/otel v1.7.0 // indirect
223+
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.7.0 // indirect
224+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.7.0 // indirect
225+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.7.0 // indirect
226+
go.opentelemetry.io/otel/sdk v1.7.0 // indirect
227+
go.opentelemetry.io/otel/trace v1.7.0 // indirect
228+
go.opentelemetry.io/proto/otlp v0.16.0 // indirect
229+
go.uber.org/atomic v1.10.0 // indirect
245230
go.uber.org/multierr v1.8.0 // indirect
246231
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa // indirect
247232
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect
248-
golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect
249-
golang.org/x/oauth2 v0.0.0-20220718184931-c8730f7fcb92 // indirect
233+
golang.org/x/net v0.0.0-20220805013720-a33c5aa5df48 // indirect
234+
golang.org/x/oauth2 v0.0.0-20220722155238-128564f6959c // indirect
250235
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 // indirect
251-
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect
236+
golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect
252237
golang.org/x/term v0.0.0-20220526004731-065cf7ba2467 // indirect
253238
golang.org/x/text v0.3.7 // indirect
254239
golang.org/x/time v0.0.0-20220722155302-e5dcc9cfc0b9 // indirect
255240
golang.org/x/tools v0.1.11 // indirect
256-
golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect
257-
google.golang.org/api v0.89.0 // indirect
258241
google.golang.org/appengine v1.6.7 // indirect
259242
google.golang.org/genproto v0.0.0-20220720214146-176da50484ac // indirect
260243
google.golang.org/grpc v1.48.0 // indirect
261-
google.golang.org/protobuf v1.28.0 // indirect
244+
google.golang.org/protobuf v1.28.1 // indirect
262245
gopkg.in/cheggaaa/pb.v1 v1.0.28 // indirect
263246
gopkg.in/inf.v0 v0.9.1 // indirect
264-
gopkg.in/ini.v1 v1.66.6 // indirect
247+
gopkg.in/ini.v1 v1.67.0 // indirect
265248
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
266249
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
267250
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
268251
gopkg.in/warnings.v0 v0.1.2 // indirect
269252
gopkg.in/yaml.v2 v2.4.0 // indirect
270253
k8s.io/klog/v2 v2.60.1-0.20220317184644-43cc75f9ae89 // indirect
271254
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9 // indirect
272-
knative.dev/pkg v0.0.0-20220325200448-1f7514acd0c2 // indirect
273255
sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 // indirect
274256
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
275257
)

0 commit comments

Comments
 (0)