Skip to content

GitLab CI

Define sfdx-hardis environment variables

  • Go to Project -> Settings > CI/CD -> Variables (you must have Gitlab authorizations to access this menu)

  • Create the variable with the following info:
    • name: YOUR_VARIABLE_NAME
    • value: Your variable value
    • Select Mask variable if the value is secured, like credentials or tokens
    • Unselect Protected variable

More info: Gitlab documentation

Auto-fix branches

Default CI templates skip steps that run sf hardis commands when the current branch starts with auto-fix/. This prevents recursive or redundant deploy/check executions on auto-generated fix branches.