"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/cmd/secret/set/http.go" between
gh-cli-1.10.3.tar.gz and gh-cli-1.11.0.tar.gz

About: GitHub CLI is GitHub’s official command line tool.

http.go  (gh-cli-1.10.3):http.go  (gh-cli-1.11.0)
skipping to change at line 93 skipping to change at line 93
EncryptedValue: eValue, EncryptedValue: eValue,
KeyID: pk.ID, KeyID: pk.ID,
Repositories: repositoryIDs, Repositories: repositoryIDs,
Visibility: visibility, Visibility: visibility,
} }
path := fmt.Sprintf("orgs/%s/actions/secrets/%s", orgName, secretName) path := fmt.Sprintf("orgs/%s/actions/secrets/%s", orgName, secretName)
return putSecret(client, host, path, payload) return putSecret(client, host, path, payload)
} }
func putEnvSecret(client *api.Client, pk *PubKey, repo ghrepo.Interface, envName
string, secretName, eValue string) error {
payload := SecretPayload{
EncryptedValue: eValue,
KeyID: pk.ID,
}
path := fmt.Sprintf("repos/%s/environments/%s/secrets/%s", ghrepo.FullNam
e(repo), envName, secretName)
return putSecret(client, repo.RepoHost(), path, payload)
}
func putRepoSecret(client *api.Client, pk *PubKey, repo ghrepo.Interface, secret Name, eValue string) error { func putRepoSecret(client *api.Client, pk *PubKey, repo ghrepo.Interface, secret Name, eValue string) error {
payload := SecretPayload{ payload := SecretPayload{
EncryptedValue: eValue, EncryptedValue: eValue,
KeyID: pk.ID, KeyID: pk.ID,
} }
path := fmt.Sprintf("repos/%s/actions/secrets/%s", ghrepo.FullName(repo), secretName) path := fmt.Sprintf("repos/%s/actions/secrets/%s", ghrepo.FullName(repo), secretName)
return putSecret(client, repo.RepoHost(), path, payload) return putSecret(client, repo.RepoHost(), path, payload)
} }
// This does similar logic to `api.RepoNetwork`, but without the overfetching. // This does similar logic to `api.RepoNetwork`, but without the overfetching.
 End of changes. 1 change blocks. 
0 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)