| 1 | // Approval case 3. The template requires a hardware key as a default, and |
| 2 | // the project turns the default off. The composed policy does not require a |
| 3 | // hardware key. |
| 4 | package verification |
| 5 | |
| 6 | floor: checks: "c-build": {runner: "nix", attribute: "c-build"} |
| 7 | |
| 8 | templates: service: { |
| 9 | classes: guarded: { |
| 10 | paths: "hooks/**": bool | *true |
| 11 | requires: "c-build": bool | *true |
| 12 | } |
| 13 | approval: hardware: bool | *true |
| 14 | } |
| 15 | type: "service" |
| 16 | |
| 17 | project: approval: hardware: false |