Your token has not been granted the required scopes to execute this query. The 'id' field requires one of the following scopes: ['read:packages'],
docker login -u USERNAME -p TOKEN docker.pkg.github.com
docker push docker.pkg.github.com/liufa/testdockerandk8/dockerandk8test:0.1
Here, replace USERNAME with your username and TOKEN with the personal access token generated with read/write/delete:packages
enabled
https://github.com/settings/tokens