"Righteous" is a word that usually has either a theological connotation or "self-" in front of it. Genesis 6 describes Noah as righteous and blameless. Read the chapter and see his actions. He didn't say a word, but he acted. But these actions showed his righteousness; they didn't establish it. Like ours, Noah's righteousness was through God. Like Noah, our righteousness results in God-pleasing action.