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.
The WRU's Women and Girls legacy events - #TRY OUR GAME have proved popular this week with current players and newcomers to the game learning new skills and picking up tips from national squad players.
We caught up with Shona and Ellie from the Wales women team ahead of the start of the Women's Rugby World Cup in Paris next month at a recent women's training session to encourage and promote more women and girls to try their hand at rugby. #tryourgame
The Women's Rugby World Cup warm-up clash between Wales and USA proved bittersweet for centre Elen Evans. Despite being one of the star performers on the day on her 50th Test appearance, USA edged home 10-7 at Cross Keys.
Wales completed their Junior World Championship campaign with a victory over Samoa. Team manager Mark Taylor and No 8 James Benjamin reflect on a tournament which saw Wales win three games and lose two.
Wales U20 players Angus O'Brien, Nicky Thomas and coach Richard Hodges are determined to finish their Junior World Championship with a flourish when they tackle the big hitting Samoans tomorrow in Auckland.