refactor: refactor Secrets Management Logic

- Remove owner variable and direct owner ID reference in `ListActionsSecrets` function.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2024-04-23 14:18:51 +08:00
parent 21839e6e64
commit 37287d3836
No known key found for this signature in database
1 changed files with 0 additions and 2 deletions

View File

@ -51,11 +51,9 @@ func ListActionsSecrets(ctx *context.APIContext) {
// "404":
// "$ref": "#/responses/notFound"
owner := ctx.Repo.Owner
repo := ctx.Repo.Repository
opts := &secret_model.FindSecretsOptions{
OwnerID: owner.ID,
RepoID: repo.ID,
ListOptions: utils.GetListOptions(ctx),
}