1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 07:57:07 +00:00
kyverno/.github/actions/setup-build-env/action.yaml
Pradeep Lakshmi Narasimha ea9028fe94
fix: Updated Go version to v1.23.1 to address CVE-2024-34156 (#11112)
Signed-off-by: Pradeep Lakshmi Narasimha <pradeep.vaishnav4@gmail.com>
Co-authored-by: shuting <shuting@nirmata.com>
2024-09-13 19:36:31 +08:00

38 lines
977 B
YAML

name: Setup build env
description: Clone repo, unshallow, setup go, cache and install tools.
inputs:
unshallow:
description: git unshallow
default: 'true'
free-disk-space:
description: free disk space
default: 'true'
runs:
using: composite
steps:
- uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
if: ${{ inputs.free-disk-space == 'true' }}
with:
android: true
docker-images: false
dotnet: true
haskell: true
large-packages: false
swap-storage: false
tool-cache: true
- shell: bash
if: ${{ inputs.unshallow == 'true' }}
run: |
git fetch --prune --unshallow
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ~1.23.1
- shell: bash
run: |
go mod download
- shell: bash
run: |
GOCACHE=~/.cache/kyverno/tools make install-tools