Skip to content

Instantly share code, notes, and snippets.

View pilot2254's full-sized avatar
:copilot:
Mining bitcoin on github actions

Michal Flaška pilot2254

:copilot:
Mining bitcoin on github actions
View GitHub Profile
@pilot2254
pilot2254 / Set-AllOrgMembershipVisibility.ps1
Last active July 31, 2025 08:29
This PowerShell script sets the visibility of your GitHub organization memberships to either public or private for all orgs you belong to. For more info and Linux., macOS versions, see: https://github.com/pilot2254/github-org-membership-visibility-manager
<#
.SYNOPSIS
Sets the visibility of your membership in all GitHub organizations you belong to.
.DESCRIPTION
This script uses the GitHub API to set your membership visibility in all organizations to either public or private.
.PARAMETER Token
Your GitHub Personal Access Token with the 'admin:org' scope.
.PARAMETER Username
Your GitHub username.
.PARAMETER Visibility