repo
scope. GitHub Apps must have the secrets
repository permission to use this endpoint.Authorization: Bearer ********************
curl --location --request GET 'https://api.github.com/repos///actions/secrets/public-key' \
--header 'Authorization: Bearer <token>'
{
"created_at": "2011-01-26T19:01:12Z",
"id": 2,
"key": "hBT5WZEj8ZoOv6TYJsfWq7MxTEQopZO5/IT3ZCVQPzs=",
"key_id": "1234567",
"title": "ssh-rsa AAAAB3NzaC1yc2EAAA",
"url": "https://api.github.com/user/keys/2"
}
【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通