You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This composite action checks if a GitHub user is a member of the dotCMS organization. It's used as a security gate to ensure only dotCMS organization members can trigger sensitive workflows like Claude code reviews.
4
+
5
+
## Security Features
6
+
7
+
-**Hardcoded Organization**: The organization name "dotCMS" is hardcoded and cannot be overridden
8
+
-**No Information Leakage**: Does not distinguish between public/private membership in outputs
9
+
-**Graceful Error Handling**: Returns clear status without exposing internal API details
10
+
11
+
## Inputs
12
+
13
+
| Input | Description | Required | Default |
14
+
|-------|-------------|----------|---------|
15
+
|`username`| GitHub username to check | Yes | N/A |
16
+
17
+
## Outputs
18
+
19
+
| Output | Description | Possible Values |
20
+
|--------|-------------|-----------------|
21
+
|`is_member`| Boolean indicating membership |`true` or `false`|
22
+
|`membership_status`| Detailed status |`member`, `non-member`, or `error`|
The action uses the GitHub CLI (`gh`) with the repository's `GITHUB_TOKEN` to check organization membership. It first attempts to check public membership, and if that fails, it attempts to check private membership (which requires appropriate permissions in organization repositories).
41
+
42
+
## Security Considerations
43
+
44
+
- Only checks membership in the dotCMS organization (hardcoded)
45
+
- Does not expose whether membership is public or private
46
+
- Logs authorization results without sensitive details
47
+
- Uses repository's built-in `GITHUB_TOKEN` for API access
0 commit comments