Skip to content

Secret created in Upstream Repo instead of Current Repo #4688

Closed
@brwilkinson

Description

@brwilkinson

CLI Feedback

When creating secrets, they were unexpectantly created in an Upstream repo.

gh repo view
myrepo123/MyApp123

$Secret | gh secret set $SecretName

gh secret list

> AEU2_MY_Secret123  Updated 2021-09-15

gh secret list -R myrepo123/MyApp123

> 

gh secret list  -R upstream123/MyApp123

> AEU2_MY_Secret123  Updated 2021-11-05

So this means that when creating a secret I have to do the following ?

$repo = git config --get remote.origin.url
$Secret | gh secret set $SecretName -R $repo
gh secret list -R $repo

> AEU2_MY_Secret123  Updated 2021-11-05

I would prefer it the secret was created in the Repo that I am currently in?!

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreThis issue is not accepting PRs from outside contributorsdiscussFeature changes that require discussion primarily among the GitHub CLI teamgh-secretrelating to the gh secret commandp1Affects a large population and inhibits work

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions