Skip to content

chore(deps): update golangci/golangci-lint-action action to v6 #562

chore(deps): update golangci/golangci-lint-action action to v6

chore(deps): update golangci/golangci-lint-action action to v6 #562

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@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # 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@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # 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