Skip to content

chore(deps): update actions/checkout digest to a5ac7e5 #565

chore(deps): update actions/checkout digest to a5ac7e5

chore(deps): update actions/checkout digest to a5ac7e5 #565

Workflow file for this run

name: Policy CI
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Setup OPA
uses: open-policy-agent/setup-opa@34a30e8a924d1b03ce2cf7abe97250bbb1f332b5 # v2.2.0
with:
version: latest
- name: Checkout Repository
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4
- name: Check
run: >
opa check ./examples/policies
--schema ./examples/schemas
--strict
--format pretty
- name: Test
run: opa test -v ./examples/policies
package:
name: Package
runs-on: ubuntu-latest
needs:
- test
steps:
- name: Setup OPA
uses: open-policy-agent/setup-opa@34a30e8a924d1b03ce2cf7abe97250bbb1f332b5 # v2.2.0
with:
version: latest
- name: Checkout Repository
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4
- name: Build Bundle
run: opa build -o ./bundle.tar.gz -r ${{ github.sha }} ./examples/policies
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
with:
name: policy-bundle
path: ./bundle.tar.gz