Skip to content

Bump k8s.io/client-go from 0.23.3 to 0.28.4 #380

Bump k8s.io/client-go from 0.23.3 to 0.28.4

Bump k8s.io/client-go from 0.23.3 to 0.28.4 #380

Workflow file for this run

name: Golang lint, golic, gokart and test
on:
push:
paths-ignore:
- '**.md'
- '**.svg'
- '**.drawio'
- '.spelling'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
- '**.svg'
- '**.drawio'
- '.spelling'
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
skip-check:
permissions:
actions: write # for fkirc/skip-duplicate-actions to skip or stop workflow runs
contents: read # for fkirc/skip-duplicate-actions to read and compare commits
runs-on: ubuntu-latest
name: Skip the job?
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@2e205a28d0e1da00c5f53b161f4067b052c61f34
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- id: skip_check
uses: fkirc/skip-duplicate-actions@f11521568414503656a5af807dc3018c012552c4
with:
skip_after_successful_duplicate: 'true'
do_not_skip: '["workflow_dispatch", "schedule"]'
go-inspect:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
name: Inspect packages
runs-on: ubuntu-20.04
needs: skip-check
if: ${{ needs.skip-check.outputs.should_skip != 'true' }}
steps:
- name: Set up Go
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f
with:
go-version: 1.17.6
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
# see: https://golangci-lint.run/usage/configuration/#config-file
- name: golangci-lint
uses: golangci/golangci-lint-action@5f1fec7010f6ae3b84ea4f7b2129beb8639b564f
with:
version: v1.46.2
skip-go-installation: true
- name: golic
run: |
go install github.com/AbsaOSS/golic@v0.7.2
golic inject --dry -x -t apache2
- name: gokart
run: |
go install github.com/praetorian-inc/gokart@v0.4.0
gokart scan --globalsTainted
- name: go test
run: go test ./...