GCP - Cloud Build Post Exploitation

支持 HackTricks

Cloud Build

有关 Cloud Build 的更多信息,请查看:

cloudbuild.builds.approve

拥有此权限,您可以批准执行 需要批准的代码构建

# Check the REST API in https://cloud.google.com/build/docs/api/reference/rest/v1/projects.locations.builds/approve
curl -X POST \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json" \
-d '{{
"approvalResult": {
object (ApprovalResult)
}
}' \
"https://cloudbuild.googleapis.com/v1/projects/<PROJECT_ID>/locations/<LOCATION>/builds/<BUILD_ID>:approve"
支持 HackTricks

Last updated