Skip to content

chore(deps): update actions/upload-artifact digest to 6546280 #551

chore(deps): update actions/upload-artifact digest to 6546280

chore(deps): update actions/upload-artifact digest to 6546280 #551

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@b4ffde65f46336ab88eb53be808477a3936bae11 # 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@b4ffde65f46336ab88eb53be808477a3936bae11 # 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