Looking at the North Yorkshire website, Ripon Grammar is maintained school, which means that the local authority is responsible for admissions there; in the listing of secondary schools, it says for Ripon Grammar, 'See the North Yorkshire determined admissions policy', which would appear to be the one detailed here:
https://www.northyorks.gov.uk/education-and-learning/school-admissions/school-admission-policies-and-statistics
As its a grammar school, the criteria are applied only to those who had met the required standard in the entrance exam.
Students wishing to join the school in Year 7 are required to sit the entrance test in early September, during Year 6 at primary school. The tests comprise two papers (verbal and non-verbal reasoning). A fixed percentage of the school's catchment area are offered a place in addition to those reserved for boarding. Boarders must attain the same standard of entry as day students. Any unallocated places are then offered to those students who live out of catchment and who have attained the required standard. Strict over-subscription criteria apply. All offers are made by North Yorkshire County Council.
https://www.ripongrammar.co.uk/admissions/main-school-admissions/
Being in or outside catchment would determine how your application for a place is ranked according to the oversubscription criteria. To be ranked under the In Catchment criterion, you would have to be living there as at whatever date North Yorks sets as the cut-off (it may be as at the deadline for CAF submission - October 31st- or there may be a grace period after for change of address; it must say somewhere on the NY website). They don't give out places, then decide whether you are in our outside catchment, if that's what you meant.
There is no requirement to be living within the catchment in order to register for the test.
If you are applying from out of catchment, your chance of a place would depend on how many in the higher criteria actually name the school on their CAF above any other for which they qualify and are therefore offered a place, because 'OOC' is the lowest criterion.
(The TLDR of this is, really, look at all the information on the school's website and follow the links it gives to the relevant bits of the North Yorkshire website).