Skip to content

Update actions/checkout digest to 11bd719 #367

Update actions/checkout digest to 11bd719

Update actions/checkout digest to 11bd719 #367

Workflow file for this run

name: Test kyverno-cli
on:
push:
paths:
- .github/workflows/kyverno-cli.yaml
- kyverno-cli/**
pull_request:
paths:
- .github/workflows/kyverno-cli.yaml
- kyverno-cli/**
# Declare default permissions as read only.
permissions: read-all
jobs:
kyverno-cli:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
with:
dockerfile: kyverno-cli/Dockerfile_build
ignore: DL3041 # https://github.com/hadolint/hadolint/wiki/DL3041
- name: Switch the action to use the Dockerfile_build
run: |
mv kyverno-cli/Dockerfile kyverno-cli/Dockerfile_runnable
mv kyverno-cli/Dockerfile_build kyverno-cli/Dockerfile
- name: kyverno-cli - tests
uses: ./kyverno-cli
with:
tests: kyverno-cli/_test/kyverno.sh
- name: kyverno-cli - raw
uses: ./kyverno-cli
with:
raw: kyverno apply kyverno-cli/_test/policy.yaml --resource kyverno-cli/_test/namespace.yaml