Only require secrets when mutating
Rename `with_lock` to more generic `mutating` and move the env_args check to that point. This allows read-only actions to be run without requiring secrets.
This commit is contained in:
@@ -166,7 +166,7 @@ class ConfigurationTest < ActiveSupport::TestCase
|
||||
assert_raises(KeyError) do
|
||||
config = Mrsk::Configuration.new(@deploy.tap { |c| c.merge!({
|
||||
env: { "secret" => [ "PASSWORD" ] }
|
||||
}) })
|
||||
}) }).ensure_env_available
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user