Skip to content

Commit 1b64e42

Browse files
update bk pipeline (#40)
* update buildkite pipeline Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> * pre-commit config Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com> --------- Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
1 parent 4ac76d3 commit 1b64e42

File tree

4 files changed

+14
-26
lines changed

4 files changed

+14
-26
lines changed

.buildkite/pipeline.yml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,20 @@ steps:
2121
cancel_on_build_failing: true
2222
plugins:
2323
- docker#v5.12.0:
24-
image: golang:1.23.0
24+
image: golang:1.23.3
2525
always-pull: true
2626
command: ["go", "test", "-coverprofile=coverage.out", "./..."]
2727
environment:
2828
- "GOTOOLCHAIN=auto"
2929
artifact_paths: ["coverage.out"]
30-
- group: ":closed_lock_with_key: Security Checks"
31-
depends_on: "go_test"
32-
key: "security"
33-
steps:
34-
- label: ":closed_lock_with_key: gosec"
35-
key: "gosec"
36-
plugins:
37-
- docker#v5.12.0:
38-
image: "registry.hub.docker.com/securego/gosec:2.20.0"
39-
command: ["-no-fail", "-exclude-generated", "-fmt sonarqube", "-out", "results.txt", "./..."]
40-
environment:
41-
- "GOTOOLCHAIN=auto"
42-
artifact_paths: ["results.txt"]
4330
- label: ":github: upload PR reports"
4431
key: "scan-upload-pr"
4532
if: build.pull_request.id != null
46-
depends_on: ["gosec", "go_test"]
33+
depends_on: ["go_test"]
4734
plugins:
48-
- artifacts#v1.9.4:
49-
download: "results.txt"
35+
- cluster-secrets#v1.0.0:
36+
variables:
37+
SONAR_TOKEN: SONAR_TOKEN
5038
- artifacts#v1.9.4:
5139
download: "coverage.out"
5240
step: "go_test"
@@ -59,10 +47,11 @@ steps:
5947
- label: ":github: upload reports"
6048
key: "scan-upload"
6149
if: build.branch == "main"
62-
depends_on: ["gosec", "go_test"]
50+
depends_on: ["go_test"]
6351
plugins:
64-
- artifacts#v1.9.4:
65-
download: results.txt
52+
- cluster-secrets#v1.0.0:
53+
variables:
54+
SONAR_TOKEN: SONAR_TOKEN
6655
- artifacts#v1.9.4:
6756
download: coverage.out
6857
step: "go_test"

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ default_stages: [pre-commit]
22
fail_fast: true
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.6.0
5+
rev: v5.0.0
66
hooks:
77
- id: trailing-whitespace
88
- id: detect-private-key
99
exclude: providers/gmail/gmail_test.go
1010
- repo: https://github.com/google/yamlfmt
11-
rev: v0.13.0
11+
rev: v0.14.0
1212
hooks:
1313
- id: yamlfmt
1414
- repo: https://github.com/crate-ci/typos
15-
rev: v1.24.6
15+
rev: v1.27.3
1616
hooks:
1717
- id: typos

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/theopenlane/newman
22

3-
go 1.23.1
3+
go 1.23.3
44

55
require (
66
github.com/mailgun/mailgun-go/v4 v4.17.3

sonar-project.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ sonar.test.inclusions=**/*_test.go
1212
sonar.test.exclusions=**/vendor/**
1313

1414
sonar.sourceEncoding=UTF-8
15-
sonar.go.coverage.reportPaths=coverage.out
16-
sonar.externalIssuesReportPaths=results.txt
15+
sonar.go.coverage.reportPaths=coverage.out

0 commit comments

Comments
 (0)