mirror of
https://github.com/inspec/inspec
synced 2025-02-17 14:38:43 +00:00
Merge pull request #461 from chef/sr/config-permissions
ensure permissions of inspec-compliance config.json on store
This commit is contained in:
commit
103dc09bb6
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ module Compliance
|
|||
# stores a hash to json
|
||||
def store
|
||||
File.open(@config_file, 'w') do |f|
|
||||
f.chmod(0600)
|
||||
f.write(@config.to_json)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue