f2calv / yamlizr

Azure DevOps Designer-to-YAML Pipeline CLI CodeGen Tool w/GitHub Actions Generation
MIT License
69 stars 16 forks source link

Remove the check for 52 chars in the PAT to facilitate yamlizr working in a pipeline. #181

Open jshield opened 1 year ago

jshield commented 1 year ago

Azure DevOps agents do not use PATs to communicate with Azure DevOps, instead they use an access token issued by an oath2 token endpoint, as such this check leads to yamlizr running in a pipeline to fail.

our use case is to monitor the countless legacy pipelines running in our organization and determine porting efforts when they get updated.

https://github.com/f2calv/yamlizr/blob/c3d55478ac6b679db41ba6b7628b4be11b11b159/src/CasCap.DevOpsYamlizrCli/Commands/GenerateCommand.cs#L56