File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -293,9 +293,9 @@ func main() {
293293 EnvVar : "PLUGIN_REGISTRY_TYPE" ,
294294 },
295295 cli.StringFlag {
296- Name : "oidc -token" ,
297- Usage : "OIDC token to use for authentication " ,
298- EnvVar : "OIDC_ACCESS_TOKEN " ,
296+ Name : "access -token" ,
297+ Usage : "access token" ,
298+ EnvVar : "ACCESS_TOKEN " ,
299299 },
300300 }
301301
@@ -319,7 +319,7 @@ func run(c *cli.Context) error {
319319 Password : c .String ("docker.password" ),
320320 Email : c .String ("docker.email" ),
321321 Config : c .String ("docker.config" ),
322- AccessToken : c .String ("oidc -token" ),
322+ AccessToken : c .String ("access -token" ),
323323 },
324324 CardPath : c .String ("drone-card-path" ),
325325 ArtifactFile : c .String ("artifact-file" ),
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ func loadConfig() Config {
114114func main () {
115115 config := loadConfig ()
116116 if config .AccessToken != "" {
117- os .Setenv ("OIDC_ACCESS_TOKEN " , config .AccessToken )
117+ os .Setenv ("ACCESS_TOKEN " , config .AccessToken )
118118 } else if config .Username != "" && config .Password != "" {
119119 os .Setenv ("DOCKER_USERNAME" , config .Username )
120120 os .Setenv ("DOCKER_PASSWORD" , config .Password )
You can’t perform that action at this time.
0 commit comments