View

Learn how to inspect a secret.

Command

$ vela view secret <parameters...> <arguments...>

Parameters

The following parameters are used to configure the command:

NameDescriptionEnvironment Variables
orgname of organization for the secretVELA_ORG, SECRET_ORG
reponame of repository for the secretVELA_REPO, SECRET_REPO
secret.enginename of engine that stores the secretVELA_ENGINE. SECRET_ENGINE
secret.typename of type of secret being storedVELA_TYPE, SECRET_TYPE
teamname of team for the secretVELA_TEAM, SECRET_TEAM
namename of the secretVELA_NAME, SECRET_NAME
outputformat the output for the secretVELA_OUTPUT, SECRET_OUTPUT

Permissions

COMING SOON!

Sample

Request

$ pwd
~/github/octocat
$ vela view secret --secret.engine native --secret.type repo --name foo

Targeted Request

$ pwd
~/github/octocat
$ vela view secret --secret.engine native --secret.type repo --org github --repo octocat --name foo

Response

id: 1
org: github
repo: octocat
team: ""
name: foo
value: "[secure]"
type: repo
images: null
events:
  - push
  - pull_request
allowcommand: true
createdat: 1641312765
createdby: octokitty
updatedat: 1641312765
updatedby: octokitty
Last modified February 9, 2022: docs for secrets metadata (#266) (179e26d4)