{"record":{"id":"e1e4c2e958b33cfe","repo":"sds/overcommit","slug":"signature-of-configuration-file-has-changed-run","errorCode":null,"errorMessage":"Signature of configuration file has changed!\nRun `overcommit --sign` once you've verified the configuration changes.","messagePattern":"Signature of configuration file has changed!\nRun `overcommit --sign` once you've verified the configuration changes\\.","errorType":"exception","errorClass":"Overcommit::Exceptions::ConfigurationSignatureChanged","httpStatus":null,"severity":"error","filePath":"lib/overcommit/configuration_loader.rb","lineNumber":99,"sourceCode":"      config\n    rescue Overcommit::Exceptions::ConfigurationSignatureChanged\n      raise\n    rescue StandardError => e\n      raise Overcommit::Exceptions::ConfigurationError,\n            \"Unable to load configuration from '#{file}': #{e}\",\n            e.backtrace\n    end\n\n    private\n\n    def verify_signatures(config)\n      if !config.previous_signature?\n        raise Overcommit::Exceptions::ConfigurationSignatureChanged,\n              \"No previously recorded signature for configuration file.\\n\" \\\n              'Run `overcommit --sign` if you trust the hooks in this repository.'\n\n      elsif config.signature_changed?\n        raise Overcommit::Exceptions::ConfigurationSignatureChanged,\n              \"Signature of configuration file has changed!\\n\" \\\n              \"Run `overcommit --sign` once you've verified the configuration changes.\"\n      end\n    end\n  end\nend\n","sourceCodeStart":81,"sourceCodeEnd":106,"githubUrl":"https://github.com/sds/overcommit/blob/fee0cd74b26eb81f64b43b7fab17bbb541575cc4/lib/overcommit/configuration_loader.rb#L81-L106","documentation":"Error \"Signature of configuration file has changed!\nRun `overcommit --sign` once you've verified the configuration changes.\" thrown in sds/overcommit.","triggerScenarios":"Thrown at lib/overcommit/configuration_loader.rb:99 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Review the diff of the changed Overcommit configuration, verify the changes are safe, then run `overcommit --sign` to accept the new signature.","If the change was unexpected, revert the configuration file to the previously signed version."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fee0cd74b26eb81f64b43b7fab17bbb541575cc4","analyzedAt":"2026-08-23T04:07:28.153Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}