Skip to content

Commit

Permalink
feat: switch to kyverno gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
almadigabor committed Jan 10, 2024
1 parent a342e61 commit 49b5912
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/helm-lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ on:
default: 'latest'
required: false
type: string

env:
KYVERNO_VERSION: v1.11.3
PYTHON_VERSION: '3.10'

jobs:
list-changed:
Expand All @@ -68,7 +64,7 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
python-version: '3.10'
check-latest: true

- name: Set up chart-testing
Expand Down Expand Up @@ -100,7 +96,7 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
python-version: '3.10'
check-latest: true

- name: Kubernetes KinD Cluster
Expand Down Expand Up @@ -157,12 +153,9 @@ jobs:
run: |
helm template chart-template charts/umbrella > charts/umbrella-template.yaml
- name: Download Kyverno CLI
run: |
curl -sLO https://github.com/kyverno/kyverno/releases/download/${{ env.KYVERNO_VERSION }}/kyverno-cli_${{ env.KYVERNO_VERSION }}_linux_x86_64.tar.gz
tar -xf kyverno-cli_${{ env.KYVERNO_VERSION }}_linux_x86_64.tar.gz
${GITHUB_WORKSPACE}/kyverno version
- name: Install Kyverno CLI
uses: kyverno/[email protected]

- name: Test new resources against existing policies
run: ${GITHUB_WORKSPACE}/kyverno apply .github/kyverno-policies/require-run-as-nonroot.yaml -r charts/umbrella-template.yaml
run: kyverno apply .github/kyverno-policies/require-run-as-nonroot.yaml -r charts/umbrella-template.yaml

0 comments on commit 49b5912

Please sign in to comment.