Repository navigation
Commit .codegen/cli.json gzipped to keep it under 1MB #1155
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: conftest | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - '.github/**' | |
| pull_request: | |
| paths: | |
| - '.github/**' | |
| env: | |
| CONFTEST_VERSION: "0.67.0" | |
| CONFTEST_SHA256: "a98cfd236f3cadee16d860fbe31cc6edcb0da3efc317f661c7ccd097164b1fdf" | |
| jobs: | |
| conftest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install conftest | |
| run: |- | |
| curl -fsSL "https://github.com/open-policy-agent/conftest/releases/download/v${CONFTEST_VERSION}/conftest_${CONFTEST_VERSION}_Linux_x86_64.tar.gz" \ | |
| -o conftest.tar.gz | |
| echo "${CONFTEST_SHA256} conftest.tar.gz" | sha256sum --check --strict | |
| tar xz -f conftest.tar.gz conftest | |
| sudo mv conftest /usr/local/bin/ | |
| - name: Run conftest | |
| shell: bash | |
| run: |- | |
| shopt -s nullglob | |
| conftest test \ | |
| .github/workflows/*.yml \ | |
| .github/workflows/*.yaml \ | |
| .github/actions/*/action.yml \ | |
| .github/actions/*/action.yaml \ | |
| --policy .github/conftest/rules |