$ conftest test --all-namespaces --policy ./policy/github .github/workflows
FAIL - .github/workflows/conftest.yml - github.actions.workflows.name - Job `{"name": "Check and validate Conftest Rego policies", "runs-on": "ubuntu-latest", "steps": [{"name": "Checkout code", "uses": "actions/checkout@v3"}, {"name": "Install conftest", "run": "mkdir -p \"${HOME}/.local/bin\"\ncurl -sL \"https://github.com/open-policy-agent/conftest/releases/download/v${CONFTEST_VERSION}/conftest_${CONFTEST_VERSION}_Linux_x86_64.tar.gz\" | tar xzf - -C \"${HOME}/.local/bin\" conftest\n"}, {"name": "Checking Rego formatting style", "run": "make check-fmt\n"}, {"name": "Unit testing conftest policies", "run": "make test\n"}]}` should have a `name` key
FAIL - .github/workflows/mdformat.yml - github.actions.workflows.name - Job `{"name": "Check Markdown formatting via mdformat", "runs-on": "ubuntu-latest", "steps": [{"name": "Checkout code", "uses": "actions/checkout@v3"}, {"name": "Install mdformat", "run": "pip install mdformat\n"}, {"name": "Check Markdown formatting via mdformat", "run": "mdformat --check .\n"}]}` should have a `name` key
FAIL - .github/workflows/actionlint.yml - github.actions.workflows.name - Job `{"name": "Check GitHub Actions workflows", "runs-on": "ubuntu-latest", "steps": [{"name": "Checkout code", "uses": "actions/checkout@v3"}, {"name": "Check GitHub Actions workflows", "uses": "docker://rhysd/actionlint:latest", "with": {"args": "-color"}}]}` should have a `name` key
FAIL - .github/workflows/conftest-self.yml - github.actions.workflows.name - Job `{"name": "Validate via personal conftest policies", "runs-on": "ubuntu-latest", "steps": [{"name": "Checkout code", "uses": "actions/checkout@v3"}, {"env": {"CONFTEST_POLICIES": "git::https://github.com/iamleot/conftest-policies.git//policy/github"}, "name": "Validate via personal conftest policies", "uses": "docker://openpolicyagent/conftest:latest", "with": {"args": "test --all-namespaces --update \"${{ env.CONFTEST_POLICIES }}\" .github/workflows"}}]}` should have a `name` key
48 tests, 44 passed, 0 warnings, 4 failures, 0 exceptions
Write testcase(s) to trigger that issue and fix it.