Skip to content

Commit

Permalink
Merge branch 'main' into oz-adding-permit-to-the-ecosystem-page
Browse files Browse the repository at this point in the history
  • Loading branch information
srenatus committed Apr 1, 2022
2 parents 25fc80e + f88db7e commit ef51b9f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pull-request.yaml
Expand Up @@ -310,6 +310,8 @@ jobs:

- name: Download OPA
uses: open-policy-agent/setup-opa@v1
with:
version: edge

- name: Test policies
run: opa test build/policy
Expand Down
2 changes: 2 additions & 0 deletions ADOPTERS.md
Expand Up @@ -237,6 +237,8 @@ pre-production (in alphabetical order):
automated code review, defining access levels or blocking execution of
unwanted code.

* [Wealthsimple](https://www.wealthsimple.com/) is using OPA to power all authorization checks their microservice ecosystem by leveraging their existing authorization library make the transition to OPA as simple as possible for development teams.

Other adopters that have gone into production or various stages of
testing include:

Expand Down
8 changes: 4 additions & 4 deletions build/policy/files_test.rego
Expand Up @@ -145,21 +145,21 @@ test_allow_listed_software {
test_deny_invalid_yaml_file {
expected := "invalid.yaml is an invalid YAML file"
deny[expected] with data.files.yaml_file_contents as {"invalid.yaml": "{null{}}"}
with data.files.changes as {"invalid.yaml": {"status": "modified"}}
with data.files.changes as {"invalid.yaml": {"status": "modified"}}
}

test_allow_valid_yaml_file {
count(deny) == 0 with data.files.yaml_file_contents as {"valid.yaml": "foo: bar"}
with data.files.changes as {"valid.yaml": {"status": "modified"}}
with data.files.changes as {"valid.yaml": {"status": "modified"}}
}

test_deny_invalid_json_file {
expected := "invalid.json is an invalid JSON file"
deny[expected] with data.files.json_file_contents as {"invalid.json": "}}}"}
with data.files.changes as {"invalid.json": {"status": "modified"}}
with data.files.changes as {"invalid.json": {"status": "modified"}}
}

test_allow_valid_json_file {
count(deny) == 0 with data.files.json_file_contents as {"valid.json": "{\"foo\": \"bar\"}"}
with data.files.changes as {"valid.json": {"status": "modified"}}
with data.files.changes as {"valid.json": {"status": "modified"}}
}
6 changes: 5 additions & 1 deletion docs/website/assets/sass/docs.sass
Expand Up @@ -128,4 +128,8 @@ $panel-header-logo-width: 85%
overflow-y: auto

.highlight
margin-bottom: 1.5rem // matches what live-blocks does
margin-bottom: 1.5rem // matches what live-blocks does

.dashboard-panel-content
margin: 0 0 0 2rem
padding: 0 2rem 0 0

0 comments on commit ef51b9f

Please sign in to comment.