From 26902d2729f592041b02e613b6b92f7c0dd25983 Mon Sep 17 00:00:00 2001 From: Carina Kothe <69976260+grischperl@users.noreply.github.com> Date: Thu, 11 Jul 2024 08:02:28 +0200 Subject: [PATCH] chore: update go version and lint (#128) * deps(dependabot): bump amannn/action-semantic-pull-request Bumps [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request) from 5.4.0 to 5.5.3. - [Release notes](https://github.com/amannn/action-semantic-pull-request/releases) - [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/main/CHANGELOG.md) - [Commits](https://github.com/amannn/action-semantic-pull-request/compare/e9fabac35e210fea40ca5b14c0da95a099eff26f...0723387faaf9b38adef4775cd42cfd5155ed6017) --- updated-dependencies: - dependency-name: amannn/action-semantic-pull-request dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * update go version and lint version * update golangci-lint version * update version * set env variable * set env variable --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/lint-conventional-prs.yml | 2 +- .github/workflows/lint-go.yml | 5 ++++- Dockerfile | 2 +- go.mod | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint-conventional-prs.yml b/.github/workflows/lint-conventional-prs.yml index 0b2a9eb..7a136fc 100644 --- a/.github/workflows/lint-conventional-prs.yml +++ b/.github/workflows/lint-conventional-prs.yml @@ -14,7 +14,7 @@ jobs: name: Check Title runs-on: ubuntu-latest steps: - - uses: amannn/action-semantic-pull-request@e9fabac35e210fea40ca5b14c0da95a099eff26f + - uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: diff --git a/.github/workflows/lint-go.yml b/.github/workflows/lint-go.yml index d5dd326..b8a25d8 100644 --- a/.github/workflows/lint-go.yml +++ b/.github/workflows/lint-go.yml @@ -10,6 +10,9 @@ on: - '**.md' - 'sec-scanners-config.yaml' +env: + GO111MODULE: "on" + jobs: code-linter: name: "Run golangci-lint" @@ -27,4 +30,4 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v6.0.1 with: - version: v1.57 \ No newline at end of file + version: v1.57 diff --git a/Dockerfile b/Dockerfile index b562979..2a41722 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM europe-docker.pkg.dev/kyma-project/prod/external/golang:1.22.2-alpine3.19 as builder +FROM europe-docker.pkg.dev/kyma-project/prod/external/golang:1.22.5-alpine3.20 as builder ARG DOCK_PKG_DIR=/go/src/github.com/kyma-project/eventing-publisher-proxy diff --git a/go.mod b/go.mod index f790083..5fe45d0 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/kyma-project/eventing-publisher-proxy -go 1.22.2 +go 1.22.5 require ( github.com/cloudevents/sdk-go/v2 v2.15.2