deps: bump the all-go-minor-and-patch group across 1 directory with 29 updates #333
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: govulncheck | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| merge_group: | |
| types: | |
| - checks_requested | |
| permissions: | |
| contents: read | |
| jobs: | |
| govulncheck: | |
| name: Run govulncheck (${{ matrix.module }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| module: | |
| - . | |
| - azure-ip-masq-merger | |
| - azure-ipam | |
| - azure-iptables-monitor | |
| - bpf-prog/ipv6-hp-bpf | |
| - cilium-log-collector | |
| - dropgz | |
| - pkgerrlint | |
| - tools/azure-npm-to-cilium-validator | |
| - zapai | |
| include: | |
| - module: . | |
| bpf: true | |
| - module: bpf-prog/ipv6-hp-bpf | |
| bpf: true | |
| - module: azure-iptables-monitor | |
| bpf: true | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up Go | |
| uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 | |
| if: matrix.bpf | |
| with: | |
| go-version-file: go.mod | |
| - name: Build BPF lib | |
| if: matrix.bpf | |
| run: make bpf-lib | |
| - name: Go generate | |
| if: matrix.bpf | |
| run: go generate ./... | |
| working-directory: ${{ matrix.module }} | |
| - name: Set up Go | |
| uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 | |
| with: | |
| go-version-file: ${{ matrix.module }}/go.mod | |
| - name: Run govulncheck | |
| uses: golang/govulncheck-action@b625fbe08f3bccbe446d94fbf87fcc875a4f50ee # v1.0.4 | |
| with: | |
| go-version-file: ${{ matrix.module }}/go.mod | |
| work-dir: ${{ matrix.module }} | |
| go-package: ./... | |
| repo-checkout: false | |
| check-gomod-coverage: | |
| name: Check all go.mod files are in matrix | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Verify matrix covers all go.mod files | |
| run: | | |
| MATRIX_MODULES=( | |
| "." | |
| "azure-ip-masq-merger" | |
| "azure-ipam" | |
| "azure-iptables-monitor" | |
| "bpf-prog/ipv6-hp-bpf" | |
| "cilium-log-collector" | |
| "dropgz" | |
| "pkgerrlint" | |
| "tools/azure-npm-to-cilium-validator" | |
| "zapai" | |
| ) | |
| mapfile -t FOUND_MODULES < <( | |
| find . -name "go.mod" -not -path "*/vendor/*" \ | |
| | xargs -I{} dirname {} \ | |
| | sed 's|^\./||' \ | |
| | sort | |
| ) | |
| MISSING=() | |
| for mod in "${FOUND_MODULES[@]}"; do | |
| found=false | |
| for matrix_mod in "${MATRIX_MODULES[@]}"; do | |
| if [[ "$mod" == "$matrix_mod" ]]; then | |
| found=true | |
| break | |
| fi | |
| done | |
| if [[ "$found" == "false" ]]; then | |
| MISSING+=("$mod") | |
| fi | |
| done | |
| if [[ ${#MISSING[@]} -gt 0 ]]; then | |
| echo "ERROR: The following go.mod files are not in the govulncheck matrix:" | |
| for m in "${MISSING[@]}"; do | |
| echo " - $m" | |
| done | |
| echo "" | |
| echo "Add them to the 'matrix.module' list in .github/workflows/govulncheck.yaml" | |
| exit 1 | |
| fi | |
| echo "All go.mod files are covered by the govulncheck matrix." |