Skip to content

add action for pushing policies #1

add action for pushing policies

add action for pushing policies #1

Workflow file for this run

on:
push:
workflow_dispatch:
jobs:
lint:
name: Lint policies
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: opa check --strict --max-errors 0 .
- name: Regal Lint
if: ${{ !cancelled() }}
run: regal lint --format github .
deploy:
name: Deploy policies
runs-on: ubuntu-latest
needs: lint
if: success() && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Upload
run: .github/workflows/upload.py