Skip to content

Update kyverno-test-policy.yaml #7

Update kyverno-test-policy.yaml

Update kyverno-test-policy.yaml #7

name: kyverno-policy-test
# This workflow is triggered on push to any branch and pull request to the main branch.
# It runs on ubuntu-latest.
# It uses the community action kyverno/action-install-cli@v0.2.0
# It runs the following steps:
on:
push:
branches:
- '*'
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Kyverno CLI
uses: kyverno/action-install-cli@v0.2.0
with:
release: 'v1.11.0'
- name: Check install
run: kyverno version

Check failure on line 26 in .github/workflows/kyverno-test-policy.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/kyverno-test-policy.yaml

Invalid workflow file

You have an error in your yaml syntax on line 26
- name: Test new resources against existing policies
# run: kyverno apply policies/ -r resources/
run: kyverno apply policies/disallow-root-user.yml --resource resources/disallow-root-user.yml