Skip to content

Commit 93d2f79

Browse files
fix: restore fine-grained token usage in API call
The previous pull reverted the API call to use GITHUB_TOKEN instead of the provided fine-grained token. Restore the --header Authorization parameter to use the fine-grained token for organization membership checking. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 2581e75 commit 93d2f79

File tree

1 file changed

+2
-1
lines changed
  • .github/actions/security/org-membership-check

1 file changed

+2
-1
lines changed

.github/actions/security/org-membership-check/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ runs:
4646
# This approach correctly handles both public and private organization members
4747
# without needing to distinguish between their visibility settings.
4848
49-
response=$(gh api orgs/dotCMS/members/${{ inputs.username }} 2>/dev/null)
49+
response=$(gh api orgs/dotCMS/members/${{ inputs.username }} \
50+
--header "Authorization: token ${{ inputs.github_token }}" 2>/dev/null)
5051
api_exit_code=$?
5152
5253
if [ $api_exit_code -eq 0 ]; then

0 commit comments

Comments
 (0)