-
Notifications
You must be signed in to change notification settings - Fork 0
scaffolding fixed #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,11 @@ | ||
| { | ||
| "permissions": { | ||
| "allow": [ | ||
| "Bash(dotnet build:*)" | ||
| "Bash(dotnet build:*)", | ||
| "Bash(wget:*)", | ||
| "Bash(chmod:*)", | ||
| "Bash(/tmp/dotnet-install.sh:*)", | ||
| "Bash(export PATH=\"$HOME/.dotnet:$PATH\")" | ||
| ] | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -191,34 +191,34 @@ public sealed class SemanticParameter | |||||
| /// <summary> | ||||||
| /// Represents a type reference in the semantic model | ||||||
| /// </summary> | ||||||
| public sealed class SemanticType | ||||||
| public sealed record SemanticType | ||||||
|
||||||
| { | ||||||
| public required string Name { get; set; } | ||||||
| public required string Name { get; init; } | ||||||
|
|
||||||
| /// <summary> | ||||||
| /// Is this a primitive/built-in type? | ||||||
| /// </summary> | ||||||
| public bool IsPrimitive { get; set; } | ||||||
| public bool IsPrimitive { get; init; } | ||||||
|
|
||||||
| /// <summary> | ||||||
| /// Is this a collection type? | ||||||
| /// </summary> | ||||||
| public bool IsCollection { get; set; } | ||||||
| public bool IsCollection { get; init; } | ||||||
|
|
||||||
| /// <summary> | ||||||
| /// Is this nullable? | ||||||
| /// </summary> | ||||||
| public bool IsNullable { get; set; } | ||||||
| public bool IsNullable { get; init; } | ||||||
|
|
||||||
| /// <summary> | ||||||
| /// Generic type arguments if applicable | ||||||
| /// </summary> | ||||||
| public List<SemanticType> GenericArguments { get; init; } = []; | ||||||
|
||||||
| public List<SemanticType> GenericArguments { get; init; } = []; | |
| public IReadOnlyList<SemanticType> GenericArguments { get; init; } = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding wget and chmod permissions to the local settings could introduce security risks. These commands can be used to download and execute arbitrary scripts. Consider documenting why these permissions are needed, or alternatively, use a more restricted approach such as allowing specific script paths or using dotnet SDK installation tools that don't require these broad permissions.