Skip to content
This repository was archived by the owner on Jan 31, 2026. It is now read-only.

Rework#133

Merged
EduardoOliveira merged 4 commits intomainfrom
discovery-rework
Jun 16, 2024
Merged

Rework#133
EduardoOliveira merged 4 commits intomainfrom
discovery-rework

Conversation

@EduardoOliveira
Copy link
Copy Markdown
Contributor

No description provided.


projectPath := utils.ToLibPath(root)

entries, err := os.ReadDir(projectPath)

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression

This path depends on a [user-provided value](1).

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression

This path depends on a [user-provided value](1).

entries, err := os.ReadDir(projectPath)
if err != nil {
log.Println("failed to read path", projectPath)

Check failure

Code scanning / CodeQL

Log entries created from user input

This log entry depends on a [user-provided value](1).
func DownloadAsset(name string, project *models.Project, client *http.Client, req *http.Request) error {
out, err := os.Create(utils.ToLibPath(fmt.Sprintf("%s/%s", project.FullPath(), name)))
func DownloadAsset(name string, project *entities.Project, client *http.Client, req *http.Request) ([]*types.ProcessableAsset, error) {
out, err := os.Create(utils.ToLibPath(filepath.Join(project.FullPath(), name)))

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression

This path depends on a [user-provided value](1).
@EduardoOliveira EduardoOliveira merged commit 5cef941 into main Jun 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants