Skip to content

Commit 2ccee36

Browse files
GbArcAndriiMysko
andauthored
Vulnerability updates (#657)
* vulnerability vixes (trivy scan 14.03.22) * vuln-updates - build fix(#656) Co-authored-by: AndriiMysko <[email protected]>
1 parent 2798f7f commit 2ccee36

File tree

6 files changed

+1390
-116
lines changed

6 files changed

+1390
-116
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: go
22

3-
go: 1.14.x
3+
go: 1.17.x
44

55
dist: xenial
66

@@ -35,7 +35,7 @@ jobs:
3535
include:
3636
- stage: test
3737
name: linux
38-
go: 1.14.x
38+
go: 1.17.x
3939
script:
4040
- make deps
4141
- make lintall
@@ -58,7 +58,7 @@ jobs:
5858
- travis-ci/worker/$TRAVIS_BRANCH
5959
- stage: test
6060
name: crossbuild
61-
go: 1.14.x
61+
go: 1.17.x
6262
script:
6363
- GO111MODULE=on make build/darwin/amd64/travis-worker
6464
addons:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.14 as builder
1+
FROM golang:1.17 as builder
22
MAINTAINER Travis CI GmbH <[email protected]>
33

44
COPY . /go/src/github.com/travis-ci/worker

backend/docker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ func (p *dockerProvider) Start(ctx gocontext.Context, startAttributes *StartAttr
472472
}).Debug("creating container")
473473

474474
container, err := p.client.ContainerCreate(
475-
ctx, dockerConfig, dockerHostConfig, nil, containerName)
475+
ctx, dockerConfig, dockerHostConfig, nil, nil, containerName)
476476

477477
if err != nil {
478478
logger.WithField("err", err).Error("couldn't create container")

backend/docker_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ func TestNewDockerProvider_WithInvalidInspectInterval(t *testing.T) {
357357
defer dockerTestTeardown()
358358

359359
assert.NotNil(t, err)
360-
assert.Equal(t, "time: invalid duration mraaaaaaa", err.Error())
360+
assert.Equal(t, "time: invalid duration \"mraaaaaaa\"", err.Error())
361361
assert.Nil(t, provider)
362362
}
363363

go.mod

Lines changed: 18 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,24 @@ module github.com/travis-ci/worker
33
go 1.12
44

55
require (
6-
cloud.google.com/go v0.26.0
6+
cloud.google.com/go v0.81.0
77
contrib.go.opencensus.io/exporter/stackdriver v0.5.0
8-
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 // indirect
98
github.com/Azure/go-ntlmssp v0.0.0-20180810175552-4a21cbd618b4 // indirect
109
github.com/ChrisTrenkamp/goxpath v0.0.0-20170922090931-c385f95c6022 // indirect
1110
github.com/Jeffail/tunny v0.0.0-20180304204616-59cfa8fcb19f
12-
github.com/Microsoft/go-winio v0.4.11 // indirect
13-
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 // indirect
1411
github.com/aws/aws-sdk-go v1.15.31
15-
github.com/bitly/go-simplejson v0.0.0-20171023175154-0c965951289c
12+
github.com/bitly/go-simplejson v0.5.0
1613
github.com/cenk/backoff v2.1.0+incompatible
17-
github.com/certifi/gocertifi v0.0.0-20180905225744-ee1a9a0726d2 // indirect
18-
github.com/docker/distribution v2.7.1+incompatible // indirect
19-
github.com/docker/docker v0.0.0-20181012164311-10ebe6381e1f
20-
github.com/docker/go-connections v0.0.0-20180821093606-97c2040d34df
21-
github.com/docker/go-units v0.3.3 // indirect
14+
github.com/containerd/containerd v1.6.1 // indirect
15+
github.com/docker/docker v20.10.13+incompatible
16+
github.com/docker/go-connections v0.4.0
2217
github.com/dustin/go-humanize v1.0.0
2318
github.com/dylanmei/iso8601 v0.1.0 // indirect
2419
github.com/flosch/pongo2 v0.0.0-20190505152737-8914e1cf9164 // indirect
2520
github.com/garyburd/redigo v0.0.0-20180404160726-569eae59ada9
26-
github.com/getsentry/raven-go v0.0.0-20180903072508-084a9de9eb03
27-
github.com/gogo/protobuf v1.2.1 // indirect
28-
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect
29-
github.com/google/uuid v1.1.0 // indirect
30-
github.com/googleapis/gax-go v2.0.0+incompatible // indirect
31-
github.com/gorilla/mux v0.0.0-20181012153151-deb579d6e030
32-
github.com/gorilla/websocket v1.4.2 // indirect
21+
github.com/getsentry/raven-go v0.2.0
22+
github.com/gorilla/mux v1.7.3
23+
github.com/gorilla/websocket v1.5.0 // indirect
3324
github.com/jtacoma/uritemplates v1.0.0
3425
github.com/juju/clock v0.0.0-20190205081909-9c5c9712527c // indirect
3526
github.com/juju/go4 v0.0.0-20160222163258-40d72ab9641a // indirect
@@ -44,42 +35,31 @@ require (
4435
github.com/masterzen/simplexml v0.0.0-20160608183007-4572e39b1ab9 // indirect
4536
github.com/masterzen/winrm v0.0.0-20180702085143-58761a495ca4
4637
github.com/mihasya/go-metrics-librato v0.0.0-20171227215858-c2a1624c7a80
47-
github.com/mitchellh/mapstructure v1.1.2 // indirect
4838
github.com/mitchellh/multistep v0.0.0-20170316185339-391576a156a5
39+
github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 // indirect
4940
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect
50-
github.com/opencontainers/go-digest v1.0.0-rc1 // indirect
51-
github.com/opencontainers/image-spec v1.0.1 // indirect
5241
github.com/packer-community/winrmcp v0.0.0-20180921211025-c76d91c1e7db
5342
github.com/pborman/uuid v1.2.0
54-
github.com/pkg/errors v0.8.1
43+
github.com/pkg/errors v0.9.1
5544
github.com/pkg/sftp v1.8.3
5645
github.com/rackspace/gophercloud v0.0.0-20161013232434-e00690e87603
5746
github.com/rcrowley/go-metrics v0.0.0-20180503174638-e2704e165165
58-
github.com/rogpeppe/fastuuid v1.1.0 // indirect
59-
github.com/sirupsen/logrus v0.0.0-20181010200618-458213699411
60-
github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a // indirect
47+
github.com/sirupsen/logrus v1.8.1
6148
github.com/streadway/amqp v0.0.0-20180806233856-70e15c650864
62-
github.com/stretchr/testify v1.2.2
63-
go.opencensus.io v0.15.0
64-
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a
65-
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110
66-
golang.org/x/oauth2 v0.0.0-20181003184128-c57b0facaced
67-
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
68-
golang.org/x/text v0.3.6 // indirect
69-
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2 // indirect
70-
google.golang.org/api v0.0.0-20181012000736-72df7e5ac770
71-
google.golang.org/appengine v1.2.0 // indirect
72-
google.golang.org/genproto v0.0.0-20181004005441-af9cb2a35e7f // indirect
73-
google.golang.org/grpc v1.14.0 // indirect
49+
github.com/stretchr/testify v1.7.0
50+
go.opencensus.io v0.23.0
51+
golang.org/x/crypto v0.0.0-20220313003712-b769efc7c000
52+
golang.org/x/net v0.0.0-20211216030914-fe4d6282115f
53+
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f
54+
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
55+
google.golang.org/api v0.43.0
7456
gopkg.in/httprequest.v1 v1.2.0 // indirect
7557
gopkg.in/juju/environschema.v1 v1.0.0 // indirect
7658
gopkg.in/macaroon-bakery.v2 v2.1.0 // indirect
7759
gopkg.in/macaroon.v2 v2.1.0 // indirect
7860
gopkg.in/retry.v1 v1.0.3 // indirect
7961
gopkg.in/robfig/cron.v2 v2.0.0-20150107220207-be2e0b0deed5 // indirect
8062
gopkg.in/urfave/cli.v1 v1.20.0
81-
gopkg.in/yaml.v2 v2.4.0 // indirect
82-
gotest.tools v2.2.0+incompatible // indirect
8363
)
8464

8565
replace github.com/go-check/check v1.0.0-20180628173108-788fd7840127 => github.com/go-check/check v0.0.0-20180628173108-788fd7840127

0 commit comments

Comments
 (0)