feat: update deprecated fields in disallow-latest-tag policy (#1130)

Related Issue(s)

https://github.com/kyverno/policies/issues/1130

Description

This PR updates the deprecated field spec.validationFailureAction to validate.failureAction in the disallow-latest-tag policy.

This change is aligned with the deprecations introduced in Kyverno 1.13, which specify the use of new fields under corresponding rules.

Checklist

  • I have read the policy contribution guidelines.
  • I have added test manifests and resources covering both positive and negative tests that prove this policy works as intended.
  • I have added the artifacthub-pkg.yml file and have verified it is complete and correct.

Merge request reports

Loading