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.
Wales duo Rhun Williams and Liam Belcher, who makes a welcome return after five months of injury woe, look ahead to next month's World Rugby U20 Championship in Manchester where they will face Ireland, Georgia and New Zealand.
Whenever Bedlinog tackle Penallta a massive fixure is guaranteed but this Sunday there will be even more emphasis placed on the two rivals when they contest the SSE Swalec Plate final at Principality Stadium.
Ahead of their SSE SWALEC Bowl Final clash with Taffs Well at Principality Stadium on Sunday, Burry Port share their #FABXV nomination with WRUTV in the search for Welsh rugby's greatest volunteers. Everyone can get involved by sending nominations via twitter to @WRU_Community using the hashtag #FABXV
Cardiff Blues prop Gethin Jenkins and Ospreys centre Ben John look ahead to the first game at Principality Stadium in Saturday's double header which is promising to be a special occasion for all Welsh fans.
Carmarthen Quins Director of Rugby Ian Jones and committee member Jeff Thomas along with Llandovery chairman Handel Davies look ahead to Sunday's SSE SWALEC Cup showdown where both teams are out to prove 'West is best'
SWALEC ambassador Shane WIlliams is looking forward to Sunday's Finals Day where the Cup, Bowl and Plate offers a great opportunity for players and teams to experience the magic of playing at Principality Stadium
Carmarthen Quins coach Richard Kelly believes it is an exciting time to be part of the Scarlets region as his side take on local rivals Llandovery in the SSE Swalec Cup final on Sunday, as WRU TV's Graeme Gillespie discovers