actions / create-github-app-token

GitHub Action for creating a GitHub App Installation Access Token
https://github.com/marketplace/actions/create-github-app-token
MIT License
344 stars 47 forks source link

AWS system manager( Parameter store ) #97

Closed ankushkatiyar closed 7 months ago

ankushkatiyar commented 7 months ago

Hello team, I'm using create-github-app-token action to generate token and i'm able to generate token successfully. But i want to store generated token from create-github-app-token action in AWS system manager( Parameter store ) and from parameter store i want to access GitHub REST API.

When i perform the step that i mentioned above i can see this output

{
    "message": "Bad credentials",
    "documentation_url": "https://docs.github.com/rest"
}

It seems stored token in AWS SSM is not correct. When i use GitHub REST API in GitHub actions and use the generated token from create-github-app-token action, it works. Can you help me in this why i'm not to able to use the stored token in GitHub REST APIs in different client's like Postman

gr2m commented 7 months ago

Note that the token is only valid for 1h. Is it possible that the token expired by the time you are trying to use it?

ankushkatiyar commented 7 months ago

Hi @gr2m I use it instantly after token saving in AWS SSM , it seems due to some security reason saved token on AWS SSM is not right? I hope generated token from create-github-app-token action is not encrypted

gr2m commented 7 months ago

I hope generated token from create-github-app-token action is not encrypted

No it's not

I don't think this is a problem with the create-github-app-token action. If you have more questions please comment, but I'm going to close this issue as there is nothing actionable for us to do, and we want to reserve issues for actionable items