Skip to content

Commit 40f8212

Browse files
authored
Use govulncheck to scan the runner binary (#744)
1 parent 4b03ecc commit 40f8212

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/trivy.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022, 2024, Oracle Corporation and/or its affiliates. All rights reserved.
1+
# Copyright 2022, 2025, Oracle Corporation and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at
33
# http://oss.oracle.com/licenses/upl.
44

@@ -81,6 +81,7 @@ jobs:
8181
- name: Image Scan
8282
shell: bash
8383
run: |
84+
sh ./hack/golang/govulncheck.sh
8485
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
8586
export TRIVY_CACHE=$GITHUB_WORKSPACE/.cache/trivy
8687
make trivy-scan

hack/golang/govulncheck.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
#
3+
# Copyright (c) 2020, 2025, Oracle and/or its affiliates.
4+
# Licensed under the Universal Permissive License v 1.0 as shown at
5+
# http://oss.oracle.com/licenses/upl.
6+
#
7+
8+
9+
go install golang.org/x/vuln/cmd/govulncheck@latest
10+
make runner
11+
govulncheck -mode binary -show traces,version,verbose ./bin/runner

0 commit comments

Comments
 (0)