Skip to content

Commit a2bc8bb

Browse files
committed
fix: add cache busting where missing
Signed-off-by: Kevin Carter <[email protected]>
1 parent 2d5e569 commit a2bc8bb

File tree

7 files changed

+20
-5
lines changed

7 files changed

+20
-5
lines changed

.github/workflows/container-build-kube-ovn.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ jobs:
9595
labels: ${{ steps.meta.outputs.labels }}
9696
build-args: |
9797
KUBE_OVN_VERSION=${{ matrix.kube-ovn-version }}
98+
KUBE_OVN_VERSION_ENV=${{ matrix.kube-ovn-version }}
9899
CACHEBUST=${{ github.sha }}
99100
- name: Run Trivy vulnerability scanner
100101
uses: aquasecurity/[email protected]
@@ -152,4 +153,5 @@ jobs:
152153
labels: ${{ steps.meta.outputs.labels }}
153154
build-args: |
154155
KUBE_OVN_VERSION=${{ matrix.kube-ovn-version }}
156+
KUBE_OVN_VERSION_ENV=${{ matrix.kube-ovn-version }}
155157
CACHEBUST=${{ github.sha }}

.github/workflows/container-build-kubernetes-entrypoint.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ jobs:
6262
tags: |
6363
${{ env.IMAGE_NAME }}:local
6464
labels: ${{ steps.meta.outputs.labels }}
65+
build-args: |
66+
CACHEBUST=${{ github.sha }}
6567
- name: Run Trivy vulnerability scanner
6668
uses: aquasecurity/[email protected]
6769
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
@@ -115,3 +117,5 @@ jobs:
115117
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
116118
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.MY_DATE }}
117119
labels: ${{ steps.meta.outputs.labels }}
120+
build-args: |
121+
CACHEBUST=${{ github.sha }}

.github/workflows/container-build-libguestfs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ jobs:
110110
build-args: |
111111
GUESTFS_VERSION=${{ matrix.libguestfs-version }}
112112
GUESTFS_HIVEX_VERSION=${{ matrix.libguestfs-hivex-version }}
113+
CACHEBUST=${{ github.sha }}
113114
- name: Run Trivy vulnerability scanner
114115
uses: aquasecurity/[email protected]
115116
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
@@ -166,3 +167,4 @@ jobs:
166167
build-args: |
167168
GUESTFS_VERSION=${{ matrix.libguestfs-version }}
168169
GUESTFS_HIVEX_VERSION=${{ matrix.libguestfs-hivex-version }}
170+
CACHEBUST=${{ github.sha }}

.github/workflows/container-build-ovs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ jobs:
9595
labels: ${{ steps.meta.outputs.labels }}
9696
build-args: |
9797
OVS_VERSION=${{ matrix.ovs-version }}
98+
CACHEBUST=${{ github.sha }}
9899
- name: Run Trivy vulnerability scanner
99100
uses: aquasecurity/[email protected]
100101
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
@@ -150,3 +151,4 @@ jobs:
150151
labels: ${{ steps.meta.outputs.labels }}
151152
build-args: |
152153
OVS_VERSION=${{ matrix.ovs-version }}
154+
CACHEBUST=${{ github.sha }}

.github/workflows/container-build-shibd.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161
tags: |
6262
${{ env.IMAGE_NAME }}:local
6363
labels: ${{ steps.meta.outputs.labels }}
64+
build-args: |
65+
CACHEBUST=${{ github.sha }}
6466
- name: Run Trivy vulnerability scanner
6567
uses: aquasecurity/[email protected]
6668
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
@@ -114,3 +116,5 @@ jobs:
114116
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
115117
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.MY_DATE }}
116118
labels: ${{ steps.meta.outputs.labels }}
119+
build-args: |
120+
CACHEBUST=${{ github.sha }}

ContainerFiles/kube-ovn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
ARG KUBE_OVN_VERSION=v1.14.4
66
FROM golang:1.24-bookworm AS dependency_build
7-
ARG KUBE_OVN_VERSION=v1.14.4
7+
ARG KUBE_OVN_VERSION_ENV=v1.14.4
88
ARG CACHEBUST=0
99
RUN export DEBIAN_FRONTEND=noninteractive \
1010
&& apt-get update && apt-get upgrade -y \
@@ -13,7 +13,7 @@ RUN export DEBIAN_FRONTEND=noninteractive \
1313
build-essential
1414
RUN git clone --recursive https://github.com/kubeovn/kube-ovn /opt/kube-ovn
1515
WORKDIR /opt/kube-ovn
16-
RUN git checkout ${KUBE_OVN_VERSION} && \
16+
RUN git checkout ${KUBE_OVN_VERSION_ENV} && \
1717
git submodule update --init --recursive && \
1818
git submodule foreach --recursive git reset --hard && \
1919
git submodule foreach --recursive git clean -fdx

scripts/kube-ovn.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/usr/bin/env bash
22

3-
if [ ${KUBE_OVN_VERSION:-master} = "v1.14.4" ]; then
3+
if [ ${KUBE_OVN_VERSION_ENV:-master} = "v1.14.4" ]; then
44
# CVE fixes CVE-2025-54388,CVE-2025-22870,CVE-2025-22872,CVE-2025-22868
55
go get -u github.com/docker/docker
66
go get -u golang.org/x/net
77
go get -u golang.org/x/oauth2
8-
elif [ ${KUBE_OVN_VERSION:-master} = "v1.13.14" ]; then
9-
# CVE fixes CVE-2025-22870,CVE-2025-22872,CVE-2025-22868
8+
elif [ ${KUBE_OVN_VERSION_ENV:-master} = "v1.13.14" ]; then
9+
# CVE fixes CVE-2025-22870,CVE-2025-22872,CVE-2025-22868,GHSA-fv92-fjc5-jj9h
10+
go get -u github.com/go-viper/mapstructure/v2
1011
go get -u golang.org/x/net
1112
go get -u golang.org/x/oauth2
1213
fi

0 commit comments

Comments
 (0)