Why I get access denied while editing my container app configurations after creating it using github actions?

ASHWANI PANDEY 20 Reputation points
2023-11-09T06:38:01.41+00:00

I have github workflow which pulls images from github container registry and deploys it on container apps. I am using Azure container apps build and deploy action.

Container app is created successfully, but when I try to edit some configuration (say adding custom domain) on azure portal, I get access denied message:

The following field(s) are either invalid or missing. Field 'template.containers.testcontainer.image' is invalid with details: 'Invalid value: "ghcr.io/dummyuser/testimage:latest": GET https:?scope=repository%3Adummyuser%2Ftestimage%3Apull&service=ghcr.io: DENIED: denied';.
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
574 questions
{count} votes

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,416 Reputation points
    2023-11-15T16:49:43.86+00:00

    ASHWANI PANDEY Thank you for sharing the solution. It will greatly help others facing similar issues and looking for a solution. Microsoft Q&A has policy: Accept an answer that question authors cannot accept their own answers and hence I am posting your answer in case you like to accept.

    Resolution:

    The issue was using GITHUB_TOKEN to deploy container App in registryPassword which didn't have right permissions and hence it was denied. You had created a new token with read permissions and the issue was resolved.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.