Replies: 2 comments
-
What do you mean by 'user information'? If you're looking to identify who initiated the workflow, you can use the GitHub context or environment variable in the workflow. echo "$GITHUB_ACTOR"
echo "${{ github.actor }}" |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can also obtain curl -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
There exist default
GITHUB_TOKEN
secrets which can be used during the workflows run.https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
How can I retrieve user information from this token?
I've tried this api but it is not working as expected...
Beta Was this translation helpful? Give feedback.
All reactions