This action runs Popeye report (standard) and validates that the score is over the given threshold.
Required Full kubeconfig data that Popeye will use to connect to the cluster.
Minimum score for the cluster to pass the Popeye Analysis. Default value: 50
Flags for Popeye to run the report and tests. Default value: -A
- Comment to the Open PR (if any).
- Exit code 1 if score is under ther given threshold, 0 otherwise.
This example gets the kubeconfig from Github secrets and validates that the cluster score is more or equal than 80:
on:
pull_request:
types: [opened, synchronize]
jobs:
popeye_job:
runs-on: ubuntu-latest
name: Popeye Validation
steps:
- name: Popeye Score
id: popeye-score
uses: actions/popeye-github-actions@v9
env:
KUBECONFIG_DATA: ${{ secrets.KUBECONFIG_DATA }}
POPEYE_MIN_SCORE: 80