get_encryption_key: Manage encrypted environment variables

Description Usage Arguments Details Value See Also Examples

Description

Retrieve and refresh the public key used for encryption.

Usage

1
2
3

Arguments

repo

A character string specifying a repo slug (i.e., cloudyr/travisci), a numeric Travis-CI repository ID, or an object of class “travis_repo”. If a slug is used, it will be implicitly converted to a repository ID in some cases where only the latter is accepted.

...

Additional arguments passed to travisHTTP.

Details

These functions retrieve and refresh the public key used for encrypting secure environment variables for the Travis-CI build environment. This is probably more easily handled using the travis command-line tools, but it is also an implemented feature of the API and the functionality may be expanded in the future. See hrefhttp://docs.travis-ci.com/user/encryption-keys/the API documentation for full details. get_encryption_key retrieves the current, repository-specific public key. set_encryption_key resets the key and returns its value.

Value

A list.

See Also

get_env_vars

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# authenticate based on Sys.setenv("GITHUB_TOKEN" = "sometoken")
auth_travis()

# get current public key
get_encryption_key("cloudyr/travisci")

# reset public key and retrieve the new value
set_encryption_key("cloudyr/travisci")

## End(Not run)

cloudyr/travisci documentation built on May 13, 2019, 8:22 p.m.