module

GitHub::REST::Secrets

This module is specifically for interacting with the Secrets endpoints GitHub offers us to use. see GitHub Secrets endpoints

Instance methods

create_or_update_secret

TODO

Source
delete_secret(owner : String, repository : String, name : String) : Nil

NOTE: Raises an error when not found

Source
get_my_public_key(owner : String, repository : String) : PublicKey

Gets your public key, which you must store. You need your public key to use other secrets endpoints. Use the returned key to encrypt your secrets. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the secrets permission to use this endpoint.

Source
get_secret(owner : String, repository : String, name : String) : Secrets::SecretData
Source
list_secrets(owner : String, repository : String) : Secrets

NOTE: Secrets is NOT an array! it contains an array of SecretData SEE this.

Source