Skip to content

Commit f65eb74

Browse files
authored
Merge pull request #348 from arnested/misc
Misc minor tweaks
2 parents db9b749 + 858be27 commit f65eb74

6 files changed

Lines changed: 68 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
- name: Run GoReleaser
3535
uses: goreleaser/goreleaser-action@v6
3636
with:
37-
version: latest
3837
args: release
3938
env:
4039
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/security.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
name: Security Checks
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
schedule:
9+
- cron: '0 15 * * 0'
10+
11+
permissions:
12+
contents: read
13+
actions: read
14+
pull-requests: read
15+
security-events: write
16+
17+
jobs:
18+
gosec:
19+
name: Golang Security Checker
20+
runs-on: ubuntu-24.04
21+
steps:
22+
- name: Checkout Source
23+
uses: actions/checkout@v6
24+
- name: Run Gosec Security Scanner
25+
uses: securego/gosec@v2.22.11
26+
with:
27+
args: '-no-fail -fmt sarif -out results.sarif -tests ./...'
28+
- name: Upload SARIF file
29+
uses: github/codeql-action/upload-sarif@v4
30+
with:
31+
sarif_file: results.sarif
32+
govulncheck:
33+
name: Govulncheck
34+
runs-on: ubuntu-24.04
35+
steps:
36+
- uses: actions/checkout@v6
37+
- name: Setup Go
38+
uses: actions/setup-go@v6
39+
with:
40+
go-version-file: go.mod
41+
- id: govulncheck
42+
uses: arnested/govulncheck-action@main
43+
with:
44+
output-format: sarif
45+
output-file: results.sarif
46+
setup-go: false
47+
repo-checkout: false
48+
- name: Upload SARIF file
49+
uses: github/codeql-action/upload-sarif@v4
50+
with:
51+
sarif_file: results.sarif

.goreleaser.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
---
2+
version: 2
23
builds:
34
- env:
45
- CGO_ENABLED=0
6+
mod_timestamp: "{{ .CommitTimestamp }}"
7+
flags:
8+
- -trimpath
9+
ldflags:
10+
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }}
511
archives:
6-
- format: binary
12+
- formats:
13+
- binary
714
name_template: >-
815
{{ .ProjectName }}_
916
{{- if eq .Os "linux" }}Linux
@@ -14,7 +21,7 @@ archives:
1421
checksum:
1522
name_template: 'checksums.txt'
1623
snapshot:
17-
name_template: "{{ .Tag }}-next"
24+
version_template: "{{ .Tag }}-next"
1825
changelog:
1926
sort: asc
2027
filters:

LICENSE renamed to LICENSE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
MIT License
2+
===========
23

3-
Copyright (c) 2017, 2018 Arne Jørgensen
4+
Copyright (c) 2017, 2018, 2022, 2024, 2025 Arne Jørgensen
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ require (
1414
github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect
1515
github.com/google/go-querystring v1.1.0 // indirect
1616
github.com/russross/blackfriday/v2 v2.1.0 // indirect
17-
github.com/shopspring/decimal v1.3.1 // indirect
18-
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
17+
github.com/shopspring/decimal v1.4.0 // indirect
18+
github.com/xrash/smetrics v0.0.0-20250705151800-55b8f293f342 // indirect
1919
)

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
1414
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1515
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
1616
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
17-
github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8=
18-
github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
17+
github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k=
18+
github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=
1919
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
2020
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
2121
github.com/urfave/cli/v2 v2.27.7 h1:bH59vdhbjLv3LAvIu6gd0usJHgoTTPhCFib8qqOwXYU=
2222
github.com/urfave/cli/v2 v2.27.7/go.mod h1:CyNAG/xg+iAOg0N4MPGZqVmv2rCoP267496AOXUZjA4=
23-
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4=
24-
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM=
23+
github.com/xrash/smetrics v0.0.0-20250705151800-55b8f293f342 h1:FnBeRrxr7OU4VvAzt5X7s6266i6cSVkkFPS0TuXWbIg=
24+
github.com/xrash/smetrics v0.0.0-20250705151800-55b8f293f342/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM=
2525
golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU=
2626
golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY=
2727
golang.org/x/oauth2 v0.34.0 h1:hqK/t4AKgbqWkdkcAeI8XLmbK+4m4G5YeQRrmiotGlw=

0 commit comments

Comments
 (0)