Merge pull request #10 from phylum-dev/brad/updates #34
Workflow file for this run
This file contains 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: 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 . |