Skip to content

build(deps): bump k8s.io/component-base from 0.34.1 to 0.34.2 in /health-probe-proxy in the all group #182

build(deps): bump k8s.io/component-base from 0.34.1 to 0.34.2 in /health-probe-proxy in the all group

build(deps): bump k8s.io/component-base from 0.34.1 to 0.34.2 in /health-probe-proxy in the all group #182

name: Go Module Consistency
on:
push:
branches: [ master, 'release-**' ]
pull_request:
branches: [ master, 'release-**' ]
permissions:
contents: read
jobs:
go-mod-consistency:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4.2.2
- name: Discover Go modules
id: gomods
uses: ./.github/actions/discover-go-modules
- name: Setup Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: ${{ steps.gomods.outputs.version }}
check-latest: true
cache-dependency-path: ${{ steps.gomods.outputs.gosums }}
- name: Run go mod tidy and verify
run: |
set -euo pipefail
mapfile -t modules <<< "${{ steps.gomods.outputs.modules }}"
if [ "${#modules[@]}" -eq 0 ]; then
echo "No modules found from discovery step" >&2
exit 1
fi
for m in "${modules[@]}"; do
if [ -z "${m}" ]; then
continue
fi
echo ">> go mod tidy (${m})"
(cd "${m}" && go mod tidy)
echo ">> go mod verify (${m})"
(cd "${m}" && go mod verify)
done
- name: Fail on uncommitted changes
run: |
git diff --stat
git diff --quiet