-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Error: Package not found. with GITHUB_TOKEN #105
Comments
Hello, Can you mention the return code you are getting? I was getting a 204, which is genuine as the package got deleted and it couldn't return anything. However, I am using the PAT token added as Github secrets. Regards, |
Using |
@tzejohn I am using the plain vanilla |
Does it need permissions in addition to |
I am getting a similar error, it says that it finds the image ID and the ID is also correct, but then it can't delete it.
My token has the following privileges I am not entirely sure whether this has the same context as the parent issue :) [UPDATE] |
permissions:
contents: read # Checkout code
packages: write # Push containers and manage tags I got also the error Gives: |
Here is the how the action is getting called:
And I am seeing the error:
Error: Package not found.
For the token, I am passing the secrets.GITHUB_TOKEN.
If I test this with octokit, making the same calls from my test node script.
This does find the package and returns metadata. The only difference is using a PAT as opposed to the GITHUB_TOKEN.
I have not yet tried switching the github action to use the PAT to see if that makes a difference.
The text was updated successfully, but these errors were encountered: