Don't query for the job using the admin key
Diff
src/config.rs | 2 +-
src/providers/gitlab.rs | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
@@ -2,7 +2,7 @@
use clap::Parser;
use serde::{de::DeserializeOwned, Deserialize};
use std::{path::PathBuf, net::SocketAddr};
use std::{net::SocketAddr, path::PathBuf};
use url::Url;
#[derive(Parser)]
@@ -47,7 +47,9 @@ impl super::UserProvider for Gitlab {
if username == "gitlab-ci-token" {
let res: GitlabJobResponse = handle_error(
self.client
reqwest::Client::new()
.get(self.base_url.join("job/")?)
.header("JOB-TOKEN", password)
.send()