chore(deps): bump github.com/aquasecurity/trivy from 0.49.2-0.20240227072422-e1ea02c7b80d to 0.50.1 #214
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test rego | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "**/*.md" | |
- "LICENSE" | |
pull_request: | |
paths-ignore: | |
- "**/*.md" | |
- "LICENSE" | |
merge_group: | |
env: | |
GO_VERSION: "1.21" | |
jobs: | |
opa-tests: | |
name: OPA tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup OPA | |
uses: ./.github/actions/setup-opa | |
- name: OPA Format | |
run: | | |
files=$(opa fmt --list . | grep -v vendor || true) | |
if [ -n "$files" ]; then | |
echo "=== The following files are not formatted ===" | |
echo "$files" | |
exit 1 | |
fi | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Test Rego checks | |
run: make test-rego |