Back to the "Repos API" | Back to the navigation
https://docs.github.com/en/rest/reference/actions#list-repository-secrets
$secrets = $client->api('repo')->secrets()->all('KnpLabs', 'php-github-api');
https://docs.github.com/en/rest/reference/actions#get-a-repository-secret
$secret = $client->api('repo')->secrets()->show('KnpLabs', 'php-github-api', $secretName);
https://docs.github.com/en/rest/reference/actions#create-or-update-a-repository-secret
$client->api('repo')->secrets()->create('KnpLabs', 'php-github-api', $secretName, [
'encrypted_value' => $encryptedValue,
]); $client->api('repo')->secrets()->all();
https://docs.github.com/en/rest/reference/actions#create-or-update-a-repository-secret
$client->api('repo')->secrets()->update('KnpLabs', 'php-github-api', $secretName, [
'key_id' => $keyId, 'encrypted_value' => $encryptedValue,
]);
https://docs.github.com/en/rest/reference/actions#delete-a-repository-secret
$client->api('repo')->secrets()->remove('KnpLabs', 'php-github-api', $secretName);
https://docs.github.com/en/rest/reference/actions#get-a-repository-public-key
$publicKey = $client->api('repo')->secrets()->publicKey('KnpLabs', 'php-github-api');