GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(release): limit stable releases to named actors · drpr/opencode@1017760

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/release
    • plan-release.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/release/plan-release.sh‎

Copy file name to clipboardExpand all lines: .github/release/plan-release.sh
+4-6Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# push or dispatch on beta -> beta 0.0.0-beta-<run> desktop only
88
# pull_request -> pr 0.0.0-pr-<run> everything, dry run
99
#
10-
# Releasers are actors with the admin or maintain role on the repository (the releasers team has maintain).
10+
# Stable releases are limited to the GitHub logins listed below (case-insensitive).
1111
. "$(dirname "$0")/lib.sh"
1212

1313
versioned=false
@@ -27,11 +27,9 @@ fi
2727
if [ "$channel" = latest ]; then
2828
actor=${GITHUB_TRIGGERING_ACTOR:-${GITHUB_ACTOR:-}}
2929
[ -n "$actor" ] || die "Stable releases can only be started by releasers; the triggering actor is unknown"
30-
role=$(gh api "repos/$GITHUB_REPOSITORY/collaborators/$actor/permission" --jq .role_name) || role=""
31-
case "$role" in
32-
admin | maintain) ;;
33-
*) die "Stable releases can only be started by releasers (admin or maintain on the repo); $actor has ${role:-no readable role}" ;;
34-
esac
30+
if ! (shopt -s nocasematch; [[ "$actor" = thdxr || "$actor" = Hona || "$actor" = rekram1-node ]]); then
31+
die "$actor is not allowed to start stable releases"
32+
fi
3533
fi
3634

3735
if [ "$channel" = latest ] && [ -n "${INPUT_VERSION:-}" ]; then

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.