Fix #759: Update workflow permissions for ReferenceSample
Fix #878 in master