Neil Jenkins scored 23 points as Pontypridd ground out another win to stay on course for a place in the Celtic League quarter-finals.
The Borders outscored their hosts by three tries to one and proved they are getting better with every game, despite the fact they remain winnless in the Celtic League.
"It was a hard earned victory and we didn't really perform. It was disappointing, but at least it was a win," said acting skipper Jon Bryant.
The robust Borders pack drove New Zealand flanker Campbell Feather over the home line for the game's first try in the opening half. That broke the deadlock after Kevin Utterson and Jenkins had swapped early kicks.
In the second half, Scotland and Lions outside half Gregor Townsend ghosted over for a try at the posts, but the ever reliable boot of Jenkins kept his side in contention.
Then some quick thinking from Wales back row man Michael Owen from a five metre penalty earned Ponty a try.Owen caught the Borders defenders napping as he ignored a penalty opportunity for Jenkins and drove over the line.
Jenkins added the wide angled conversion to leave the Scots chasing two scores to win.
In the end, they managed to send international wing Craig Moir racing 30 metres fro a try which Utterson converted with the last kick of the game to ensure a bonus point for the visitors.
Pontypridd lost their international flanker Richard Parks with a facial injury in the second half when he got a finger in his eye.
Scorers: Pontypridd: Try: M Owen; Con: N Jenkins: Pens: N Jenkins 6; DG: N Jenkins. Scottish Borders: Tries: C Feather, G Townsend, C Moir; Cons: K Utterson 3; Pens: K Utterson 2.
Angus O'Brien has quickly settled into the Wales Sevens squad after solid performances in Hong Kong and Japan. With two rounds remaining in Glasgow and Twickenham on the World Series, WRU TV's Graeme Gillespie chats to the rising star.
Wales winger Luke Morgan has established himself as one of the deadliest finishers on the Sevens World Series. WRU TV's Graeme Gillespie catches up with him on the eve of this weekend's round in Glasgow.
All roads lead to Cardiff on Sunday for the SSE SWALEC Finals Day at the Millennium Stadium. Cambrian Welfare tackle Ystradgynlais in the Bowl final, Ystrad Rhondda play Newcastle Emlyn in the Plate final while defending champions Pontypridd face Bridgend in the Cup final.
WRU Chief Executive Roger Lewis, Deputy Minister for Culture, Sport and Tourism Ken Skates and WRU Chairman Gareth Davies earlier this week launched a new competition in conjunction with the WRU unveiling its archive room.
Welsh players and management joined Deputy Minister for Sport Ken Skates at the Pierhead Building, Cardiff Bay earlier this week to reveal the Union's pioneering school-club hub initiative has been so successful the project will now almost double the scale of the original project.
The Scarlets, Newport Gwent Dragons, Cardiff Blues and the Ospreys look ahead to Judgement Day III which sees the Blues take on the Ospreys (2.30) and the Dragons tackle the Scarlets (4.45pm) at the Millennium Stadium tomorrow afternoon.
Ystradgynlais and Ynysddu played out a titanic struggle at Taffs Well in the SSE SWALEC Bowl semi-final. At the end of the game neither team could be separated after a 15-15 stalemate but Ystradgynlais go through on try count.
Blues strike first in JD III battle - Newport Gwent Dragons lock Andrew Coombs, WRU referee Dylan Llyr Jones and Cardiff Blues hooker Matthew Rees decide dressing room allocations for Judgement Day III
Wales Under 18 captain Calum Haggett has received a conditional offer to read Biomedical Science at St Anne's College, Oxford. WRU chairman Gareth Davies went to meet Calum and Coleg y Cymoedd Principal Judith Evans to wish him luck in his exams and pass on some of his personal experience.