mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 08:56:29 +00:00
fix: Make sure to refresh access token when reading commit information (#3447)
When receiving notification by webhook the forge tries to read information on the latest commit when constructing the pipeline. This requires a call to the Bitbucket API which again requires the access token to be up-to-date. Signed-off-by: Thor Anker Kvisgård Lange <tal@netic.dk>
This commit is contained in:
parent
901daf988c
commit
ce51d65829
1 changed files with 2 additions and 0 deletions
|
@ -525,6 +525,8 @@ func (c *client) getUserAndRepo(ctx context.Context, r *model.Repo) (*model.User
|
|||
}
|
||||
log.Trace().Any("user", user).Msg("got user")
|
||||
|
||||
forge.Refresh(ctx, c, _store, user)
|
||||
|
||||
return user, repo, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue