Skip to content

Commit f820c25

Browse files
Add step to identify GitHub actor in workflow
Added a step to identify the GitHub actor using the provided token.
1 parent 7154e1c commit f820c25

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/todo.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ jobs:
5353
# If you plan to run "import all" against history, set fetch-depth: 0
5454
fetch-depth: 1
5555

56+
- name: Who am I with this token?
57+
run: |
58+
set -euo pipefail
59+
who=$(curl -s -H "authorization: Bearer ${{ env.GITHUB_TOKEN }}" https://api.github.com/user | jq -r '.login,.type')
60+
echo "Actor via token: $who"
61+
env:
62+
GITHUB_TOKEN: ${{ github.token }}
63+
5664
- name: Run Issue Bot
5765
# Pin to the latest release tag instead of @main
5866
uses: juulsn/[email protected]

0 commit comments

Comments
 (0)