Commit 3ddb050
Implement validate_slacl hook logic
Summary:
Wire up the actual .slacl validation by reusing the existing parse_acl_file parser from restricted_paths_acl_file. The hook now reads file contents for any file named .slacl, attempts to parse it as a valid restricted paths ACL file (TOML format, version 0, REPO_REGION identity type), and rejects the push with a descriptive error on parse failure.
Updates the test assertions from the previous commit to assert Rejected for malformed inputs.
Reviewed By: gustavoavena
Differential Revision: D104667156
fbshipit-source-id: 4bf1136a142281a206fa7f20e7f7a77c98a7cea31 parent 79b3143 commit 3ddb050
2 files changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
0 commit comments