Job container pull access denied


I am trying to use job.container but it seems that Github Action completely ignore the credentials.

    name: Deploy dev image
    runs-on: ubuntu-latest
    environment: dev
      image: myorg/myimage:dev
        username: ${{ secrets.DOCKER_USERNAME }}
        password: ${{ secrets.DOCKER_PASSWORD }}

When running the job, I got this error

Pull down action image 'myorg/myimage:dev'
  /usr/bin/docker pull myorg/myimage:dev
  Error response from daemon: pull access denied for myorg/myimage, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
  Warning: Docker pull failed with exit code 1, back off 5.412 seconds before retry.

If I run docker pull myorg/myimage:dev locally using the same credentials, then my image is pulled correctly.

Any idea where the issue is?

Similar to Job.container.credentials doesn't work in main branch