Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS system manager( Parameter store ) #97

Closed
ankushkatiyar opened this issue Jan 26, 2024 · 3 comments
Closed

AWS system manager( Parameter store ) #97

ankushkatiyar opened this issue Jan 26, 2024 · 3 comments

Comments

@ankushkatiyar
Copy link

ankushkatiyar commented Jan 26, 2024

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
Copy link
Contributor

gr2m commented Jan 26, 2024

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
Copy link
Author

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
Copy link
Contributor

gr2m commented Jan 28, 2024

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

@gr2m gr2m closed this as completed Jan 28, 2024
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

No branches or pull requests

2 participants