Skip to content

Commit 5ffea84

Browse files
Add example of policy.json file
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
1 parent c8c5cef commit 5ffea84

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

policy.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"AllowedExtensions": {
3+
// Deny All Extensions
4+
"*": false,
5+
6+
// Only the following extensions can be installed
7+
"dbaeumer.vscode-eslint": true,
8+
"redhat.vscode-yaml": true,
9+
10+
// Only specified extensions can not be installed,
11+
// all other extensions are allowed
12+
"*": true,
13+
"dbaeumer.vscode-eslint": false,
14+
"redhat.vscode-yaml": false,
15+
16+
// Do not allow all extensions from a specific publisher (by publisher ID)
17+
"*": true,
18+
"redhat": false,
19+
20+
// Allow only extensions from a specific publisher (by publisher ID),
21+
// other extensions are not allowed
22+
"*": false,
23+
"redhat": true,
24+
25+
// Allow only 0.28.0 version of the xml extension
26+
"redhat.vscode-xml": ["0.28.0"],
27+
28+
// Allow only specified versions of the xml extension
29+
"redhat.vscode-xml": ["0.28.0", "0.28.1"],
30+
31+
// Allow only stable version of extensions for specified publisher
32+
"redhat": "stable"
33+
}
34+
}

0 commit comments

Comments
 (0)