Personal Access Token (Classic) in Github Action #53756
-
Select Topic AreaQuestion BodyHi, I have created a PAT (classic) to access github package of a private repository of an Organization. My question is how do I access or retrieve it into a environment variable of an github action. The example below does not work, where ACCESS_PACKAGE is the name of the PAT. The ACCESS_TOKEN is null.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Generally what you quoted should work. If the |
Beta Was this translation helpful? Give feedback.
-
For the sake of security do not use PAT tokens in github actions. Use my action (or host it on your own) instead https://github.com/qoomon/actions--access-token |
Beta Was this translation helpful? Give feedback.
Depending on what you're trying to do, maybe an organization secret would work? That way you could make secrets available to all repos in the organization.