Skip to content

Merge pull request #10 from phylum-dev/brad/updates #32

Merge pull request #10 from phylum-dev/brad/updates

Merge pull request #10 from phylum-dev/brad/updates #32

Workflow file for this run

name: Lint policies
on:
push:
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup OPA
uses: open-policy-agent/[email protected]
with:
version: 0.61
- name: Setup Regal
uses: StyraInc/[email protected]
with:
version: 0.21
- name: OPA Check
if: ${{ !cancelled() }}
run: find . -maxdepth 1 -type f -name '*.rego' -print0 | xargs -0L1 opa check --strict --max-errors 0
- name: Regal Lint
if: ${{ !cancelled() }}
run: regal lint --format github .