Skip to content

Commit

Permalink
more sec stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Diogenesoftoronto committed Oct 13, 2023
1 parent d4700fb commit 34128fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/workflow/activities/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,12 @@ func unbag(path string) error {
// Create metadata and submissionDocumentation directories.
metadataPath, _ := securejoin.SecureJoin(path, "metadata")
documentationPath, _ := securejoin.SecureJoin(metadataPath, "submissionDocumentation")
if err := os.MkdirAll(metadataPath, 0o775); err != nil { //#nosec G301 -- Evaluate use of UID and GID among containers so that permission 750 could be used.
//#nosec G301 -- Evaluate use of UID and GID among containers so that permission 750 could be used.
if err := os.MkdirAll(metadataPath, 0o775); err != nil {
return err
}
if err := os.MkdirAll(documentationPath, 0o775); err != nil { //#nosec G301 -- Evaluate use of UID and GID among containers so that permission 750 could be used.
//#nosec G301 -- Evaluate use of UID and GID among containers so that permission 750 could be used.
if err := os.MkdirAll(documentationPath, 0o775); err != nil {
return err
}

Expand Down

0 comments on commit 34128fc

Please sign in to comment.