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

Add api_tokens() method to retrieve API token details #126

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

salome-voltz
Copy link
Contributor

@salome-voltz salome-voltz commented Nov 20, 2024

What has been done

GGClient now provides a api_tokens() method to retrieve API token details (see https://api.gitguardian.com/docs#tag/API-Tokens).

api_tokens() can be called with a token to retrieve its details or without argument to retrieve the current token details.

Note: best reviewed commit-by-commit. First commit updates the .gitguardian.yaml to remove deprecated keys.

@salome-voltz salome-voltz force-pushed the salomevoltz/add-api-tokens-endpoint-method branch 2 times, most recently from 877909b to 5085a84 Compare November 20, 2024 10:57
@salome-voltz salome-voltz marked this pull request as ready for review November 20, 2024 12:30
@salome-voltz salome-voltz requested a review from a team as a code owner November 20, 2024 12:30
@salome-voltz salome-voltz self-assigned this Nov 20, 2024
Copy link
Contributor

@sevbch sevbch left a comment

Choose a reason for hiding this comment

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

Just minor comments!

@salome-voltz salome-voltz force-pushed the salomevoltz/add-api-tokens-endpoint-method branch from 5085a84 to 0deba64 Compare November 21, 2024 09:52
@salome-voltz salome-voltz requested a review from sevbch November 21, 2024 10:17
Copy link
Collaborator

@agateau-gg agateau-gg left a comment

Choose a reason for hiding this comment

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

Looks good!

@salome-voltz salome-voltz merged commit 0d70909 into master Nov 21, 2024
19 checks passed
@salome-voltz salome-voltz deleted the salomevoltz/add-api-tokens-endpoint-method branch November 21, 2024 15:17
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.

3 participants