Skip to content

Commit 1246ea1

Browse files
committed
Add govulncheck GH workflow
Runs on pull requests and daily at 06:23 UTC. The idea is to catch newly disclosed vulnerabilities in our code. Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
1 parent 45e4ef5 commit 1246ea1

5 files changed

Lines changed: 32 additions & 1 deletion

File tree

.github/workflows/build-and-push.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121

2222
- name: Set up Go
2323
uses: actions/setup-go@v6
24+
with:
25+
go-version-file: "go.mod"
2426

2527
- name: Prepare variables
2628
id: vars

.github/workflows/govulncheck.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: govulncheck
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
schedule:
9+
- cron: '23 6 * * *'
10+
11+
jobs:
12+
govulncheck:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v7
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@v6
21+
with:
22+
go-version-file: "go.mod"
23+
24+
- name: Run govulncheck
25+
run: make govulncheck

.github/workflows/pre-commit.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616

1717
- name: Set up Go
1818
uses: actions/setup-go@v6
19+
with:
20+
go-version-file: "go.mod"
1921

2022
- name: Run pre-commit hooks
2123
uses: pre-commit/action@v3.0.1

.github/workflows/verify-generation.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616

1717
- name: Set up Go
1818
uses: actions/setup-go@v6
19+
with:
20+
go-version-file: "go.mod"
1921

2022
- name: Install operator-sdk
2123
uses: redhat-actions/openshift-tools-installer@v1

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.24 AS builder
2+
FROM golang:1.25 AS builder
33
ARG TARGETOS
44
ARG TARGETARCH
55
ARG GOMAXPROCS

0 commit comments

Comments
 (0)