mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
fix(runner): check token
This commit is contained in:
parent
5596943433
commit
8263693622
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user