From f251b0fdcae90b7743c19a534424b7269898f6ac Mon Sep 17 00:00:00 2001 From: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> Date: Sun, 24 Nov 2024 10:25:29 -0700 Subject: [PATCH] buildkite pipeline updates, go bump, testify bump (#6) Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> --- .buildkite/pipeline.yaml | 29 +++++++++-------------------- go.mod | 4 ++-- go.sum | 4 ++-- sonar-project.properties | 3 +-- 4 files changed, 14 insertions(+), 26 deletions(-) diff --git a/.buildkite/pipeline.yaml b/.buildkite/pipeline.yaml index f8d29e0..75f05e5 100644 --- a/.buildkite/pipeline.yaml +++ b/.buildkite/pipeline.yaml @@ -19,29 +19,17 @@ steps: key: "go_test" plugins: - docker#v5.12.0: - image: golang:1.23.0 + image: golang:1.23.3 command: ["go", "test", "-coverprofile=coverage.out", "./..."] artifact_paths: ["coverage.out"] - - group: ":closed_lock_with_key: Security Checks" - depends_on: "tests" - key: "security" - steps: - - label: ":closed_lock_with_key: gosec" - key: "gosec" - plugins: - - docker#v5.12.0: - image: "registry.hub.docker.com/securego/gosec:2.20.0" - command: ["-no-fail", "-exclude-generated", "-fmt sonarqube", "-out", "results.txt", "./..."] - environment: - - "GOTOOLCHAIN=auto" - artifact_paths: ["results.txt"] - label: ":github: upload PR reports" key: "scan-upload-pr" if: build.pull_request.id != null - depends_on: ["gosec", "go_test"] + depends_on: ["go_test"] plugins: - - artifacts#v1.9.4: - download: "results.txt" + - cluster-secrets#v1.0.0: + variables: + SONAR_TOKEN: SONAR_TOKEN - artifacts#v1.9.4: download: "coverage.out" step: "go_test" @@ -54,10 +42,11 @@ steps: - label: ":github: upload reports" key: "scan-upload" if: build.branch == "main" - depends_on: ["gosec", "go_test"] + depends_on: ["go_test"] plugins: - - artifacts#v1.9.4: - download: results.txt + - cluster-secrets#v1.0.0: + variables: + SONAR_TOKEN: SONAR_TOKEN - artifacts#v1.9.4: download: coverage.out step: "go_test" diff --git a/go.mod b/go.mod index 9a8f08e..4f6c9e0 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,9 @@ module github.com/theopenlane/go-turso -go 1.23.0 +go 1.23.3 require ( - github.com/stretchr/testify v1.9.0 + github.com/stretchr/testify v1.10.0 github.com/xhit/go-str2duration/v2 v2.1.0 ) diff --git a/go.sum b/go.sum index 0d5f44a..0befb3d 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/xhit/go-str2duration/v2 v2.1.0 h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8Ydu2Bstc= github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= diff --git a/sonar-project.properties b/sonar-project.properties index a26f476..282ba73 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -12,5 +12,4 @@ sonar.test.inclusions=*_test.go sonar.exclusions= sonar.sourceEncoding=UTF-8 -sonar.go.coverage.reportPaths=coverage.out -sonar.externalIssuesReportPaths=results.txt \ No newline at end of file +sonar.go.coverage.reportPaths=coverage.out \ No newline at end of file