Skip to content

Fix rego linting issue introduced by regal update #1204

Fix rego linting issue introduced by regal update

Fix rego linting issue introduced by regal update #1204

Workflow file for this run

name: Policy Test
on:
push:
pull_request:
jobs:
lint:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/[email protected]
- name: Setup Regal
uses: StyraInc/[email protected]
with:
version: latest
- name: Lint
run: >
regal
lint
--format github
--config-file regal.yaml
./policy
test:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/[email protected]
- name: Setup OPA
uses: open-policy-agent/[email protected]
with:
version: latest
- name: Test
run: opa test ./policy -v