Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.0.14 #29

Merged
merged 5 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
stable: true
go-version: 1.17.x
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.48
version: latest
args: --timeout=5m
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# MacOS
.DS_Store

# Vagrant
.vagrant*/

# Binaries for programs and plugins
*.exe
*.dll
*.so
*.dylib

# Test binary, build with `go test -c`
*.test

# Output of the go coverage tool
*.out

# vendored packages
vendor*/

# goreleaser
dist/

.envrc
58 changes: 58 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

version: 1

project_name: go-trapcheck

before:
hooks:
- go mod tidy
- golangci-lint run
- cmd: golangci-lint run
env:
- GOOS=linux
- govulncheck ./...

builds:
- skip: true

release:
github:
owner: circonus-labs
name: go-trapcheck

draft: false
prerelease: auto

changelog:
use: git
sort: desc
abbrev: 0
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: 'Dependencies'
regexp: "^.*build(deps):+.*$"
order: 2
- title: Others
order: 999
filters:
exclude:
- '^docs:'
- typo

checksum:
name_template: "{{.ProjectName}}_checksums.txt"

sboms:
- artifacts: any
args: ["../go.mod", "--output", "[email protected]={{.ProjectName}}_{{.Version}}.sbom"]
env:
- SYFT_GOLANG_SEARCH_LOCAL_MOD_CACHE_LICENSES=true
- SYFT_GOLANG_SEARCH_REMOTE_LICENSES=true

13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
# changelog
# unreleased

## v0.0.14

* build: add goreleaser config (with sbom generation)
* chore: use latest lint in workflow
* chore: add .gitignore
* fix: typo in comment

## v0.0.13

* build(deps): bump github.com/hashicorp/go-retryablehttp from 0.7.4 to 0.7.5

## v0.0.12

Expand Down
2 changes: 1 addition & 1 deletion broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (tc *TrapCheck) fetchBroker(cid, checkType string) error {

func (tc *TrapCheck) getBroker(checkType string) error {
//
// caller defiened specific broker, try to use it
// caller defined specific broker, try to use it
//
if tc.checkConfig != nil && len(tc.checkConfig.Brokers) > 0 {
return tc.fetchBroker(tc.checkConfig.Brokers[0], checkType)
Expand Down