iamleot / conftest-policies Goto Github PK
View Code? Open in Web Editor NEWCollection of personal conftest policies
License: BSD 2-Clause "Simplified" License
Collection of personal conftest policies
License: BSD 2-Clause "Simplified" License
Since commit 35314ce a regression was likely introduced and when analyzing properly written GitHub Actions workflows github.actions.workflows.name
is triggered.
A possible reproducer is against the .github/workflows
of this repository at commit 35314ce:
$ 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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.