-
Notifications
You must be signed in to change notification settings - Fork 36
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
enable gosec #147
enable gosec #147
Conversation
Signed-off-by: Kim Tsao <ktsao@redhat.com>
Signed-off-by: Kim Tsao <ktsao@redhat.com>
Codecov ReportBase: 58.23% // Head: 58.20% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #147 +/- ##
==========================================
- Coverage 58.23% 58.20% -0.03%
==========================================
Files 35 35
Lines 3963 3965 +2
==========================================
Hits 2308 2308
- Misses 1516 1518 +2
Partials 139 139
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Signed-off-by: Kim Tsao <ktsao@redhat.com>
Signed-off-by: Kim Tsao <ktsao@redhat.com>
Signed-off-by: Kim Tsao <ktsao@redhat.com>
Signed-off-by: Kim Tsao <ktsao@redhat.com>
Signed-off-by: Kim Tsao <ktsao@redhat.com>
Signed-off-by: Kim Tsao <ktsao@redhat.com>
@@ -38,7 +38,7 @@ | |||
fmt.Printf("Writing to file: %s\n", filePath) | |||
fileContent := fmt.Sprintf("package %s\n\n// %s\nconst %s = `%s\n`\n", packageVersion, schemaURL, jsonSchemaVersion, newSchema) | |||
|
|||
if err := ioutil.WriteFile(filePath, []byte(fileContent), 0755); err != nil { | |||
if err := ioutil.WriteFile(filePath, []byte(fileContent), 0644); err != nil { |
Check failure
Code scanning / gosec
Expect WriteFile permissions to be 0600 or less
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.
does this not fail the github CI @kim-tsao ?
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.
This only place this seems to get called is from main.go which is called from the updateAPI.sh script (run locally) to sync the api dependency
Handled all Gosec findings by either fixing them or annotating them with
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kim-tsao, maysunfaisal The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Kim Tsao ktsao@redhat.com
What does this PR do?:
Which issue(s) this PR fixes:
devfile/api#937
PR acceptance criteria:
Testing and documentation do not need to be complete in order for this PR to be approved. We just need to ensure tracking issues are opened.
Unit/Functional tests
QE Integration test
Documentation
Client Impact
How to test changes / Special notes to the reviewer: