Skip to content

Commit 657c01d

Browse files
authored
upgrade to go 1.24.4 (#74)
Add scheduled vulncheck, change dependabot schedule
1 parent e6bcb42 commit 657c01d

File tree

7 files changed

+69
-14
lines changed

7 files changed

+69
-14
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ updates:
33
- package-ecosystem: "gomod"
44
directory: "/"
55
schedule:
6-
interval: "monthly"
6+
interval: "weekly"
77
labels:
88
- "dependencies"
99
commit-message:
1010
prefix: "build"
1111
- package-ecosystem: "github-actions"
1212
directory: "/"
1313
schedule:
14-
interval: "monthly"
14+
interval: "weekly"
1515
labels:
1616
- "dependencies"
1717
commit-message:

.github/workflows/main.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- 'main'
77

88
env:
9-
GO_VERSION: '1.24.3'
9+
GO_VERSION: '1.24.4'
1010

1111
jobs:
1212
changes:
@@ -15,6 +15,7 @@ jobs:
1515
contents: read
1616
outputs:
1717
code: ${{ steps.filter.outputs.code }}
18+
deps: ${{ steps.filter.outputs.deps }}
1819
release: ${{ steps.filter.outputs.release }}
1920
workflows: ${{ steps.filter.outputs.workflows }}
2021
yml: ${{ steps.filter.outputs.yml }}
@@ -35,6 +36,10 @@ jobs:
3536
- "main.go"
3637
- ".github/actions/**"
3738
- ".github/workflows/main.yml"
39+
deps:
40+
- "go.mod"
41+
- "go.sum"
42+
- ".github/workflows/main.yml"
3843
release:
3944
- ".goreleaser.yaml"
4045
- ".github/workflows/main.yml"
@@ -191,3 +196,18 @@ jobs:
191196
/var/tmp/hours_head --dbpath=/var/tmp/throwaway-with-data.db report 3d -p
192197
/var/tmp/hours_head --dbpath=/var/tmp/throwaway-with-data.db log 3d -p
193198
/var/tmp/hours_head --dbpath=/var/tmp/throwaway-with-data.db stats 3d -p
199+
200+
vulncheck:
201+
needs: changes
202+
if: ${{ needs.changes.outputs.deps == 'true' }}
203+
runs-on: ubuntu-latest
204+
steps:
205+
- uses: actions/checkout@v4
206+
- name: Set up Go
207+
uses: actions/setup-go@v5
208+
with:
209+
go-version: ${{ env.GO_VERSION }}
210+
- name: install govulncheck
211+
run: go install golang.org/x/vuln/cmd/govulncheck@latest
212+
- name: govulncheck
213+
run: govulncheck ./...

.github/workflows/pr.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55

66
env:
7-
GO_VERSION: '1.24.3'
7+
GO_VERSION: '1.24.4'
88

99
jobs:
1010
changes:
@@ -13,6 +13,7 @@ jobs:
1313
pull-requests: read
1414
outputs:
1515
code: ${{ steps.filter.outputs.code }}
16+
deps: ${{ steps.filter.outputs.deps }}
1617
release: ${{ steps.filter.outputs.release }}
1718
workflows: ${{ steps.filter.outputs.workflows }}
1819
yml: ${{ steps.filter.outputs.yml }}
@@ -33,6 +34,10 @@ jobs:
3334
- "main.go"
3435
- ".github/actions/**"
3536
- ".github/workflows/pr.yml"
37+
deps:
38+
- "go.mod"
39+
- "go.sum"
40+
- ".github/workflows/pr.yml"
3641
release:
3742
- ".goreleaser.yaml"
3843
- ".github/workflows/pr.yml"
@@ -190,3 +195,18 @@ jobs:
190195
/var/tmp/hours_head --dbpath=/var/tmp/throwaway-with-data.db report 3d -p
191196
/var/tmp/hours_head --dbpath=/var/tmp/throwaway-with-data.db log 3d -p
192197
/var/tmp/hours_head --dbpath=/var/tmp/throwaway-with-data.db stats 3d -p
198+
199+
vulncheck:
200+
needs: changes
201+
if: ${{ needs.changes.outputs.deps == 'true' }}
202+
runs-on: ubuntu-latest
203+
steps:
204+
- uses: actions/checkout@v4
205+
- name: Set up Go
206+
uses: actions/setup-go@v5
207+
with:
208+
go-version: ${{ env.GO_VERSION }}
209+
- name: install govulncheck
210+
run: go install golang.org/x/vuln/cmd/govulncheck@latest
211+
- name: govulncheck
212+
run: govulncheck ./...

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
id-token: write
1010

1111
env:
12-
GO_VERSION: '1.24.3'
12+
GO_VERSION: '1.24.4'
1313

1414
jobs:
1515
release:

.github/workflows/vulncheck.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: vulncheck
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 2 * * 2,6'
7+
8+
env:
9+
GO_VERSION: '1.24.4'
10+
11+
jobs:
12+
vulncheck:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up Go
17+
uses: actions/setup-go@v5
18+
with:
19+
go-version: ${{ env.GO_VERSION }}
20+
- name: install govulncheck
21+
run: go install golang.org/x/vuln/cmd/govulncheck@latest
22+
- name: govulncheck
23+
run: govulncheck ./...

.pre-commit-config.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

go.mod

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

3-
go 1.24.3
3+
go 1.24.4
44

55
require (
66
github.com/charmbracelet/bubbles v0.21.0

0 commit comments

Comments
 (0)