module GitHub::REST::Secrets

Overview

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

Direct including types

Defined in:

githubcr/rest.cr

Instance Method Summary

Instance Method Detail

def create_or_update_secret #

TODO


[View source]
def delete_secret(owner : String, repository : String, name : String) : Nil #

NOTE Raises an error when not found


[View source]
def 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.


[View source]
def get_secret(owner : String, repository : String, name : String) : Secrets::SecretData #

[View source]
def list_secrets(owner : String, repository : String) : Secrets #

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


[View source]