Organization package issue

Open
#314 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
github, github-actions

Research direction

Start by reproducing the organization package request described in the issue, comparing the generated installation token with the PAT and the requested permissions. Check the action's documented permission inputs and GitHub's organization package API behavior; done means identifying whether the action or GitHub App permissions need a change and documenting the supported resolution.

Written by the indexing model from the issue text.

Description

Hi I am trying to get a token to deal with organization container packages since a while
I am using this other action https://github.com/snok/container-retention-policy but I am struggling here.

Testing a bit further, doing a curl to https://api.github.com/orgs/ORG/packages/container/NAME with the generated token retruns me a 404. Using a PAT instead I get a good result. I am giving it permission-packages: write

I can see this action has a permission-organization-packages permission? I am trying to use it but I get a 422 "The permissions requested are not granted to this installation"
I have given the app ALL admin permissions available so far, and still cannot get it working.

Maybe I am missing something obvious here.

Dominant language
JavaScript
Stars
886
Forks
174
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from actions/create-github-app-token

All issues in actions/create-github-app-token

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.