Skip to content

Commit

Permalink
Merge pull request #4 from compliance-framework/more-ci
Browse files Browse the repository at this point in the history
More CI
  • Loading branch information
harrylincoln-CS authored Jan 6, 2025
2 parents bd9b95b + b62a683 commit e48abae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ jobs:
- name: Setup OPA
uses: open-policy-agent/setup-opa@v2
with:
version: latest
version: v0.46.1 # Specify a known good version
- name: Verify OPA Installation
run: opa version
- name: Validate Policies
run: opa check policies/
- name: Run OPA Build
run: |
mkdir -p dist/
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v4

# - name: Setup OPA
# uses: open-policy-agent/setup-opa@v2
# with:
# version: latest
- name: Setup OPA
uses: open-policy-agent/setup-opa@v2
with:
version: v0.46.1 # Specify a known good version

# - name: Run OPA Tests
# run: opa test policies
- name: Verify OPA Installation
run: opa version

# - name: Run OPA Check
# run: opa check policies
- name: Validate Policies
run: opa check policies/

0 comments on commit e48abae

Please sign in to comment.