Use the checks settings file
You can run the policy checks that are enabled in your settings file by using the checks run command.
Here are some tips to use your settings file:
To use the in-memory file while running
runorshow, enter N at runtime. Other commands require a checks settings file to save the changes for checks.To use a checks settings file customized for a specific environment or project, specify the name with the
--checks-settings-fileparameter. If you do not specify this parameter, Liquibase uses the in-memory file or default settings file:liquibase.checks-settings.conf.To group multiple checks settings files together and run them in a single
runorshowcommand, create a checks package.
Procedure
Run this command against your checks settings file
liquibase checks run --checks-settings-file=<my_file_name>.yaml --changelogfile --<your_changelog_here>.sqlIf your liquibase.checks-settings.conf file is from an earlier version of Liquibase Secure, it is automatically upgraded when you run a checks command. Liquibase creates a single backup file per upgrade run and displays a message identifying the version the file was upgraded from and to, for example: "The checks settings file has been upgraded from version 1.1 to version 2.0". The follow-up prompt accurately states whether a backup will be created.