Skip to content

Update regal-lint.yaml #318

Update regal-lint.yaml

Update regal-lint.yaml #318

Workflow file for this run

name: Lint policies with Regal
on: [push, pull_request]
# Declare default permissions as read only.
permissions: read-all
jobs:
lint-policy:
runs-on: ubuntu-latest
env:
# renovate: datasource=github-releases depName=open-policy-agent/opa
OPA_VERSION: v0.63.0
# renovate: datasource=github-releases depName=StyraInc/regal
REGAL_VERSION: v0.20.1
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Setup OPA
uses: open-policy-agent/setup-opa@34a30e8a924d1b03ce2cf7abe97250bbb1f332b5 # v2.2.0
with:
version: ${{ env.OPA_VERSION }}
- name: Setup Regal
uses: StyraInc/setup-regal@33a142b1189004e0f14bf42b15972c67eecce776 # v1.0.0
with:
version: ${{ env.REGAL_VERSION }}
- name: Run OPA Check
run: opa check policy --strict
- name: Run Regal lint
run: regal lint --format github policy