Skip to content

Suggest upgrading package from PAK to GITHUB_TOKEN - #7

Merged
vsoch merged 3 commits into
singularityhub:masterfrom
adelavega:patch-1
Aug 16, 2021
Merged

vsoch merged 3 commits into
singularityhub:masterfrom
adelavega:patch-1

Conversation

@adelavega

Copy link
Copy Markdown
Contributor

Closes #6

I think the exact issue is that the first time I created the package was from pushing locally using a personal access token. When the package is created in that manner, the repo is not automatically given permission to push to the package/registry using GITHUB_TOKEN.

It's hard to confirm 100% because if you've never pushed to the repo, then the package wouldn't exist, and there wouldn't be any package settings to access...

@vsoch vsoch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's exactly what happened - I'm thinking back to my experience, and for this repo I just tested logging in from the command line (and didn't push) and it was associated without a hitch. For another project I'm working on, I pushed previously and had to go through these same association steps!

I did a few tweaks and added an if/else thing so the user's options are explicitly clear. Let me know what you think.

Comment thread README.md Resolved
adelavega and others added 2 commits August 16, 2021 16:02

@vsoch vsoch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@vsoch
vsoch merged commit ecd464d into singularityhub:master Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

github token not working

2 participants