Skip to content

Commit

Permalink
Allow reads on release.json
Browse files Browse the repository at this point in the history
  • Loading branch information
CGA1123 committed Sep 4, 2021
1 parent 86d1943 commit 4218db3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/slugcmplr/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ func compile(ctx context.Context, out outputter, h *heroku.Service, c *Compile,
return fmt.Errorf("error encoding metadata: %w", err)
}

// #nosec G306
if err := os.WriteFile(
filepath.Join(buildDir, "release.json"),
b.Bytes(),
0600,
0644,
); err != nil {
return fmt.Errorf("failed to create meta file: %w", err)
}
Expand Down

0 comments on commit 4218db3

Please sign in to comment.