Issue found and resolved when using the Azure Portal to configure CI/CD pipeline.
The workflow file created by this process uses a permission claim for id-token of write, which is fine, however no other permissions are set. The issue with this, is that if you declare one the rest are set to none unless declared otherwise.
Issue found and resolved when using the Azure Portal to configure CI/CD pipeline.
The workflow file created by this process uses a permission claim for
id-token
of write, which is fine, however no other permissions are set. The issue with this, is that if you declare one the rest are set tonone
unless declared otherwise.To resolve the issue faced, I had to add
contents: read
to thepermissions:
block, allowing the action to checkout the repository.