File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,15 +15,15 @@ jobs:
1515 uses : actions/checkout@v4
1616
1717 - name : install go
18- uses : actions/setup-go@v4
18+ uses : actions/setup-go@v5
1919 with :
20- go-version : 1.24.3
20+ go-version : ' 1.26 '
2121
2222 - name : run tests
2323 run : go test -v ./...
2424
2525 - name : run linting
26- uses : golangci/golangci-lint-action@v6
26+ uses : golangci/golangci-lint-action@v7
2727 with :
2828 version : latest
2929
Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ jobs:
2222 run : git fetch --force --tags
2323
2424 - name : setup go
25- uses : actions/setup-go@v4
25+ uses : actions/setup-go@v5
2626 with :
2727 go-version : stable
2828
2929 - name : publish package
30- uses : goreleaser/goreleaser-action@v5
30+ uses : goreleaser/goreleaser-action@v7
3131 with :
3232 distribution : goreleaser
3333 version : latest
4444
4545 - name : fetch docker metadata
4646 id : metadata
47- uses : docker/metadata-action@v5
47+ uses : docker/metadata-action@v6
4848 with :
4949 images : ' ghcr.io/${{ github.repository }}'
5050 tags : |
5454 type=sha
5555
5656 - name : build and push container image
57- uses : docker/build-push-action@v5
57+ uses : docker/build-push-action@v7
5858 with :
5959 context : .
6060 push : true
Original file line number Diff line number Diff line change 66# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
77# vim: set ts=2 sw=2 tw=0 fo=cnqoj
88
9+ version : 2
10+
911before :
1012 hooks :
1113 - go mod tidy
Original file line number Diff line number Diff line change 1- FROM golang:1.24.3 AS build
1+ FROM golang:1.26.2 AS build
22
33WORKDIR /action
44
5+ COPY go.mod go.sum ./
6+ RUN go mod download
7+
58COPY . .
69
710RUN CGO_ENABLED=0 go build -o pull-request-title-validator
811
9- FROM alpine:latest
12+ FROM alpine:3.21
1013
1114COPY --from=build /action/pull-request-title-validator /pull-request-title-validator
1215
Original file line number Diff line number Diff line change 11module github.com/kontrolplane/pull-request-title-validator
22
3- go 1.24.3
3+ go 1.26.2
44
5- require github.com/caarlos0/env v3.5.0+incompatible
6-
7- require github.com/stretchr/testify v1.10.0 // indirect
5+ require github.com/caarlos0/env/v11 v11.3.1
Original file line number Diff line number Diff line change 1- github.com/caarlos0/env v3.5.0+incompatible h1:Yy0UN8o9Wtr/jGHZDpCBLpNrzcFLLM2yixi/rBrKyJs =
2- github.com/caarlos0/env v3.5.0+incompatible /go.mod h1:tdCsowwCzMLdkqRYDlHpZCp2UooDD3MspDBjZ2AD02Y =
3- github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
4- github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
5- github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
6- github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
7- github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA =
8- github.com/stretchr/testify v1.10.0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
9- gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA =
10- gopkg.in/yaml.v3 v3.0.1 /go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM =
1+ github.com/caarlos0/env/v11 v11.3.1 h1:cArPWC15hWmEt+gWk7YBi7lEXTXCvpaSdCiZE2X5mCA =
2+ github.com/caarlos0/env/v11 v11.3.1 /go.mod h1:qupehSf/Y0TUTsxKywqRt/vJjN5nz6vauiYEUUr8P4U =
Original file line number Diff line number Diff line change 88 "regexp"
99 "strings"
1010
11- "github.com/caarlos0/env"
11+ "github.com/caarlos0/env/v11 "
1212)
1313
1414const (
You can’t perform that action at this time.
0 commit comments