Skip to content

Commit 9298b10

Browse files
committed
reqToken
1 parent 8bf09b9 commit 9298b10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ func Routes() *web.Router {
12811281
m.Get("/tasks", repo.ListActionTasks)
12821282
m.Group("/runs/{run}", func() {
12831283
m.Get("/artifacts", repo.GetArtifactsOfRun)
1284-
m.Delete("", reqRepoWriter(unit.TypeActions), repo.DeleteActionRun)
1284+
m.Delete("", reqToken(), reqRepoWriter(unit.TypeActions), repo.DeleteActionRun)
12851285
})
12861286
m.Get("/artifacts", repo.GetArtifacts)
12871287
m.Group("/artifacts/{artifact_id}", func() {

0 commit comments

Comments
 (0)