Parfuemerie-Douglas / scaffolder-backend-module-azure-repositories

A collection of Backstage scaffolder backend modules for Azure repositories.
https://www.npmjs.com/package/@parfuemerie-douglas/scaffolder-backend-module-azure-repositories
Apache License 2.0
9 stars 21 forks source link

Add support for Azure Devops Integration properties to be compatible with version 1.18 of Backstage #17

Open germelindam opened 9 months ago

germelindam commented 9 months ago

When using the software template actions the cloneAzureRepo (and I'm assuming the subsequent actions relating to Azure repo) fails with: "No token provided for Azure Integration". After checking this comes due to the new Backstage release version 1.18 and the deprecation of the token field for the Azure Devops Integration. The new structure is as follows:

integrations:
  azure:
    - host: dev.azure.com
      credentials:
      - organizations:
         - organizationName
        personalAccessToken: ${PAT}

But the backend logic as shown here still refers to the old structure and this brings misleading errors when in fact the authorisation should work. I believe updating the integrationConfig variable to mirror the new structure should fix it.

antoniobergas commented 9 months ago

Hi, I'm trying to deal with the issue, for now I just downgrade to version 1.17.5.

This will give you some extra info about the current state: https://github.com/Parfuemerie-Douglas/scaffolder-backend-module-azure-pipelines/issues/30

https://discord.com/channels/687207715902193673/1154845617756065932

antoniobergas commented 9 months ago

https://github.com/Parfuemerie-Douglas/scaffolder-backend-module-azure-pipelines/issues/30#issuecomment-1762015990