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 Head Coach Rob Howley talks to WRU TV's Sebastian Barrett about the 36-man squad he has just named for the forthcoming Under Armour series, which includes two uncapped players, Ospreys duo Sam Davies and Rory Thornton.
Head coach Rowland Phillips is deligthed he can now call BT Sport Cardiff Arms Park home for his Wales Women's side, who launch their international season next month with games against Scotland and UK Armed Forces in the heart of the capital city.
Wales Sevens star Sam Cross has put his home town club of Brynmawr on the map after winning a silver medal at the Rio Olympics with Team GB. His club have now honoured him by naming their players bar after him, as WRU TV discovered at the official launch, recently.
One of the newest members of the Principality Premiership, Bargoed admit it's proving to be a steep learning curve at the highest level, but are determined to become a force to be reckoned with. WRU TV visited the club last weekend when they took on Llanelli.
Table-topping Aberavon travel to north Wales to tackle RGC 1404 as both teams defend unbeaten starts to the season in the Principality Premiership. WRU TV's Graeme Gillespie visited the Wizards to see how their preparations were going for the game of the weekend.
The Half a Game initiative is currently sweeping across Wales and proving a major success. The scheme aims to give every young player at least half a game every weekend. WRU TV recently visited a festival in Narberth where clubs have fully embraced the initiative.
Both Bargoed and Swansea were seeking their first win of the Principality Premiership season this afternoon. It proved a fruitful day for the hosts - not only did they win, but Bargoed claimed a try bonus point.
Cardiff managed to keep their unbeaten record at home intact, but only just as Bridgend made them work extremely hard before the Blue and Blacks secured a hard fought Principality Premiership win at the BT Sport Arms Park last night.
Former Wales back row Andy Powell gives a guided tour of The Wern, home of Merthyr RFC, who are determined to prove a lot of people wrong and make their mark in their first season in the Principality Premiership.
Wales Sevens head coach Gareth Williams looks back on the Rio Sevens success where he helped GB win silver. He believes the successful campaign is a huge boost to his Welsh squad as they prepare for another World Series, as WRU TV's Graeme Gillespie discovers