{"record":{"id":"98493be4a9311175","repo":"sds/overcommit","slug":"no-previously-recorded-signature-for-configuration","errorCode":null,"errorMessage":"No previously recorded signature for configuration file.\nRun `overcommit --sign` if you trust the hooks in this repository.","messagePattern":"No previously recorded signature for configuration file\\.\nRun `overcommit --sign` if you trust the hooks in this repository\\.","errorType":"exception","errorClass":"Overcommit::Exceptions::ConfigurationSignatureChanged","httpStatus":null,"severity":"error","filePath":"lib/overcommit/configuration_loader.rb","lineNumber":94,"sourceCode":"\n      if @options.fetch(:verify) { config.verify_signatures? }\n        verify_signatures(config)\n      end\n\n      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":76,"sourceCodeEnd":106,"githubUrl":"https://github.com/sds/overcommit/blob/fee0cd74b26eb81f64b43b7fab17bbb541575cc4/lib/overcommit/configuration_loader.rb#L76-L106","documentation":"Error \"No previously recorded signature for configuration file.\nRun `overcommit --sign` if you trust the hooks in this repository.\" thrown in sds/overcommit.","triggerScenarios":"Thrown at lib/overcommit/configuration_loader.rb:94 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Review the hooks in this repository, then run `overcommit --sign` to record a trusted signature for the configuration file.","If you do not trust the repository's hooks, do not sign; skip the run or disable signature verification with OVERCOMMIT_NO_VERIFY at your own risk."],"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"}