Skip to content

Commit

Permalink
fix(runner): check token
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Jan 7, 2024
1 parent 5596943 commit 8263693
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/runners/JobPool.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,8 @@ func (p *JobPool) checkNewJobs() {

req, err := http.NewRequest("GET", url, nil)

req.Header.Set("X-API-Token", p.config.Token)

if err != nil {
fmt.Println("Error creating request:", err)
return
Expand Down

0 comments on commit 8263693

Please sign in to comment.