Github Actions: do I really need to repeat my docker image tag for EVERY job? - Stack Overflow

admin2025-04-16  2

This seems a bit crazy coming from GitLab CI, it seems that even if all the workflow jobs across a repo use exactly the same Docker image, I still have to specify:

    permissions:                                                                    
      packages: read                                                                
      contents: read                                                                
                                                                                    
    container:                                                                      
      image: my_image:my_tag

On EVERY single job. Surely there is a better solution to this, but what is it?

转载请注明原文地址:http://www.anycun.com/QandA/1744763488a87277.html