Skip to content

Commit dc51aea

Browse files
committed
ci: fix repo-admin fallback permission parse
1 parent 130d486 commit dc51aea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/actions/release-actor-guard/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ runs:
101101
exit 1
102102
fi
103103
104-
perm="$(node -e 'const fs=require(\"fs\"); const body=JSON.parse(fs.readFileSync(process.argv[1],\"utf8\")); process.stdout.write(String(body.permission||\"\"))' "$resp_file")"
104+
perm="$(jq -r '.permission // ""' "$resp_file" 2>/dev/null || true)"
105105
rm -f "$resp_file"
106106
107107
if [ "$perm" != "admin" ]; then

0 commit comments

Comments
 (0)