camargo / delete-untagged-action

Deletes all untagged image versions from the GitHub Packages container registry.
MIT License
4 stars 3 forks source link

Cannot delete images but permission present #1

Open sergey-safarov opened 1 year ago

sergey-safarov commented 1 year ago

I have configured the action with camargo/delete-untagged-action, the required permission is present but images cannot be deleted. latest actions at https://github.com/kamailio/kamailio/actions/workflows/alpine.yml

Example screenshot image

For me is not clear what is the root of the issue. Could you extend the logs output? Maybe add a full request and response body and endpoint URL.

kamailio-sync commented 7 months ago

@sergey-safarov we were using GITHUB_TOKEN so no packages:delete permission was granted. After generating a proper PAT and using it instead in the workflow everything went fine.

successfully deleted untagged image version: kamailio-ci (166918325)